2015-08-14 23:17:25 +00:00
|
|
|
class profile::gitlab {
|
|
|
|
|
2015-09-24 21:59:39 +00:00
|
|
|
file { ['/etc/gitlab', '/etc/gitlab/ssl'] :
|
|
|
|
ensure => directory,
|
|
|
|
}
|
|
|
|
|
2015-10-30 20:50:10 +00:00
|
|
|
file { "/etc/gitlab/ssl/${::fqdn}.key" :
|
2015-08-18 20:53:21 +00:00
|
|
|
ensure => file,
|
2015-10-30 20:50:10 +00:00
|
|
|
source => "${::settings::privatekeydir}/${::trusted['certname']}.pem",
|
2015-08-18 20:53:21 +00:00
|
|
|
notify => Exec['gitlab_reconfigure'],
|
|
|
|
}
|
|
|
|
|
2015-10-30 20:50:10 +00:00
|
|
|
file { "/etc/gitlab/ssl/${::fqdn}.crt" :
|
2015-08-18 20:53:21 +00:00
|
|
|
ensure => file,
|
2015-10-30 20:50:10 +00:00
|
|
|
source => "${::settings::certdir}/${::trusted['certname']}.pem",
|
2015-08-18 20:53:21 +00:00
|
|
|
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-10-30 20:50:10 +00:00
|
|
|
require => File["/etc/gitlab/ssl/${::fqdn}.key", "/etc/gitlab/ssl/${::fqdn}.key"],
|
2015-08-14 23:17:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|