Copy agent certs into Gitlab directory for Gitlab SSL

This commit is contained in:
Nick Walker 2015-08-18 13:53:21 -07:00
parent 184cf7e80e
commit 246626e639

View File

@ -1,7 +1,20 @@
class profile::gitlab {
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'],
}
class { 'gitlab':
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
require => File["/etc/gitlab/ssl/${fqdn}.key", "/etc/gitlab/ssl/${fqdn}.key"],
}
}