]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/roles/manifests/init.pp
More workarounds
[dsa-puppet.git] / modules / roles / manifests / init.pp
index 261f84f8495276b95abd50cedefab5d5134a3a43..e3e88aec44dc4ed586fb35a0fda7d3bbbfb8fba2 100644 (file)
@@ -15,11 +15,13 @@ class roles {
                }
        }
 
-       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
        }
 
@@ -32,7 +34,8 @@ 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
        }