Skip to content

Commit 4a55998

Browse files
committed
Move gitlab profile from puppetlabs/control-repo
Prior to this commit, this profile was part of the puppetlabs control-repo. After this commit, the profile is its own module.
1 parent 525deef commit 4a55998

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

manifests/init.pp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#gitlab profile based on vshn/gitlab module
2+
class rampup_profile_gitlab {
3+
4+
file { ['/etc/gitlab', '/etc/gitlab/ssl'] :
5+
ensure => directory,
6+
}
7+
8+
file { "/etc/gitlab/ssl/${::fqdn}.key" :
9+
ensure => file,
10+
source => "${::settings::privatekeydir}/${::trusted['certname']}.pem",
11+
notify => Exec['gitlab_reconfigure'],
12+
}
13+
14+
file { "/etc/gitlab/ssl/${::fqdn}.crt" :
15+
ensure => file,
16+
source => "${::settings::certdir}/${::trusted['certname']}.pem",
17+
notify => Exec['gitlab_reconfigure'],
18+
}
19+
20+
class { 'gitlab':
21+
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
22+
require => File["/etc/gitlab/ssl/${::fqdn}.key", "/etc/gitlab/ssl/${::fqdn}.key"],
23+
}
24+
}

0 commit comments

Comments
 (0)