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

25 lines
631 B
ObjectPascal
Raw Normal View History

class profile::gitlab {
file { ['/etc/gitlab', '/etc/gitlab/ssl'] :
ensure => directory,
}
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"],
}
}