git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/manifests/gitlab.pp
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-11-25 10:29:54 -0600
committermail_redacted_for_web 2015-11-25 10:29:54 -0600
commit10732cf3700bce033091fc3d0e1e5d9bb643932d (patch)
tree5b56538eb00a066503c4b32ac00a961036bbb220 /site/profile/manifests/gitlab.pp
parent869a5c3aa974b53e2f7f4c8fd8ab01fab0420f6d (diff)
parent1fd5334441f1f767154ffc28ea04c7cf8fec6611 (diff)
downloadcontrol-repo-template-10732cf3700bce033091fc3d0e1e5d9bb643932d.tar.bz2
Merge pull request #4 from npwalker/merge_npwalker_control_repo
Merge npwalker/control-repo in puppetlabs/control-repo
Diffstat (limited to 'site/profile/manifests/gitlab.pp')
-rw-r--r--site/profile/manifests/gitlab.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/site/profile/manifests/gitlab.pp b/site/profile/manifests/gitlab.pp
new file mode 100644
index 0000000..72c57e5
--- /dev/null
+++ b/site/profile/manifests/gitlab.pp
@@ -0,0 +1,24 @@
+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"],
+ }
+
+}