]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/roles/manifests/init.pp
add bugs.d.o
[dsa-puppet.git] / modules / roles / manifests / init.pp
index 261f84f8495276b95abd50cedefab5d5134a3a43..1f610aeeee014e399f88ddee231997cbbeedaa1f 100644 (file)
@@ -8,23 +8,28 @@ class roles {
                include munin::master
        }
 
-       if getfromhash($site::nodeinfo, 'nagiosmaster') {
+       if has_role('nagiosmaster') {
        #       include nagios::server
                ssl::service { 'nagios.debian.org':
                        notify => Service['apache2'],
                }
        }
 
-       if has_role('buildd') {
+       # XXX: turn this into a real role
+       if getfromhash($site::nodeinfo, 'buildd') {
                include buildd
        }
 
-       if has_role('porterbox') {
+       # XXX: turn this into a real role
+       if getfromhash($site::nodeinfo, 'porterbox') {
                include porterbox
        }
 
        if has_role('bugs_mirror') {
                include roles::bugs_mirror
+               ssl::service { 'bugs.debian.org':
+                       notify => Service['apache2'],
+               }
        }
 
        if has_role('ftp_master') {
@@ -32,11 +37,13 @@ class roles {
                include roles::dakmaster
        }
 
-       if has_role('apache2_security_mirror') {
+       # XXX: turn this into a real role
+       if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
                include roles::security_mirror
        }
 
-       if has_role('apache2_www_mirror') {
+       # XXX: turn this into a real role
+       if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
                include roles::www_mirror
        }
 
@@ -126,6 +133,10 @@ class roles {
                include roles::udd
        }
 
+       if has_role('sso') {
+               include roles::sso
+       }
+
        if has_role('buildd_master') {
                include roles::buildd_master
        }