control-repo/site/profile/manifests/gitlab.pp

25 lines
652 B
ObjectPascal
Raw Normal View History

class profile::gitlab {
file { ['/etc/gitlab', '/etc/gitlab/ssl'] :
ensure => directory,
}
2015-10-30 20:50:10 +00:00
file { "/etc/gitlab/ssl/${::fqdn}.key" :
ensure => file,
2015-10-30 20:50:10 +00:00
source => "${::settings::privatekeydir}/${::trusted['certname']}.pem",
notify => Exec['gitlab_reconfigure'],
}
2015-10-30 20:50:10 +00:00
file { "/etc/gitlab/ssl/${::fqdn}.crt" :
ensure => file,
2015-10-30 20:50:10 +00:00
source => "${::settings::certdir}/${::trusted['certname']}.pem",
notify => Exec['gitlab_reconfigure'],
}
class { 'gitlab':
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
2015-10-30 20:50:10 +00:00
require => File["/etc/gitlab/ssl/${::fqdn}.key", "/etc/gitlab/ssl/${::fqdn}.key"],
}
}