Copy agent certs into Gitlab directory for Gitlab SSL
This commit is contained in:
parent
184cf7e80e
commit
246626e639
@ -1,7 +1,20 @@
|
|||||||
class profile::gitlab {
|
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':
|
class { 'gitlab':
|
||||||
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
|
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
|
||||||
|
require => File["/etc/gitlab/ssl/${fqdn}.key", "/etc/gitlab/ssl/${fqdn}.key"],
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user