Add certs for www-master and cgi.d.o
authorPeter Palfrader <peter@palfrader.org>
Thu, 4 Feb 2016 08:00:39 +0000 (09:00 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 4 Feb 2016 08:00:39 +0000 (09:00 +0100)
hieradata/common.yaml
modules/roles/manifests/init.pp
modules/roles/manifests/syncproxy.pp
modules/roles/manifests/www_master.pp

index 36e328e..42e7d2b 100644 (file)
@@ -166,6 +166,8 @@ roles:
     - wilder.debian.org
   www_master:
     - wolkenstein.debian.org
+  cgi.d.o:
+    - wolkenstein.debian.org
   postgres_backup_server:
     - backuphost.debian.org
     - storace.debian.org
index 125f763..c436bac 100644 (file)
@@ -104,6 +104,13 @@ class roles {
                include roles::www_master
        }
 
+       if has_role('cgi.d.o') {
+               ssl::service { 'cgi.debian.org':
+                       notify => Service['apache2'],
+                       key => true,
+               }
+       }
+
        if has_role('keyring') {
                include roles::keyring
        }
index ea9e24e..86ba67c 100644 (file)
@@ -36,7 +36,10 @@ class roles::syncproxy {
 
        if $::apache2 and $syncproxy_name != 'unknown' {
                include apache2::ssl
-               ssl::service { "$syncproxy_name": notify => Service['apache2'], key => true, }
+               ssl::service {
+                       "$syncproxy_name": notify => Service['apache2'],
+                       key => true,
+               }
                apache2::site { '010-syncproxy.debian.org':
                        site   => 'syncproxy.debian.org',
                        content => template('roles/syncproxy/syncproxy.debian.org-apache.erb')
index 856721c..70fc559 100644 (file)
@@ -1,6 +1,9 @@
 class roles::www_master {
-               rsync::site { 'www_master':
-                       source => 'puppet:///modules/roles/www_master/rsyncd.conf',
-               }
-
+       rsync::site { 'www_master':
+               source => 'puppet:///modules/roles/www_master/rsyncd.conf',
+       }
+       ssl::service { 'www-master.debian.org':
+               notify => Service['apache2'],
+               key => true,
+       }
 }