2015-08-14 23:17:25 +00:00
|
|
|
class profile::gitlab {
|
|
|
|
|
2015-08-18 20:53:21 +00:00
|
|
|
file { "/etc/gitlab/ssl/${fqdn}.key" :
|
|
|
|
ensure => file,
|
|
|
|
source => "${settings::privatekeydir}/${trusted['certname']}.pem",
|
|
|
|
notify => Exec['gitlab_reconfigure'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { "/etc/gitlab/ssl/${fqdn}.crt" :
|
|
|
|
ensure => file,
|
|
|
|
source => "${settings::certdir}/${trusted['certname']}.pem",
|
|
|
|
notify => Exec['gitlab_reconfigure'],
|
|
|
|
}
|
|
|
|
|
2015-08-14 23:17:25 +00:00
|
|
|
class { 'gitlab':
|
2015-08-17 22:45:22 +00:00
|
|
|
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
|
2015-08-18 20:53:21 +00:00
|
|
|
require => File["/etc/gitlab/ssl/${fqdn}.key", "/etc/gitlab/ssl/${fqdn}.key"],
|
2015-08-14 23:17:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|