try to get rid of cruft
authorStephen Gran <steve@lobefin.net>
Sat, 2 Mar 2013 15:28:01 +0000 (15:28 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 2 Mar 2013 15:28:01 +0000 (15:28 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/roles/manifests/init.pp

index cc82cda..331aa11 100644 (file)
@@ -13,9 +13,11 @@ class roles {
        #}
 
        if getfromhash($site::nodeinfo, 'buildd') {
-               $foo = getfromhash($site::nodeinfo, 'buildd')
-               notice("Buildd is ${foo}")
                include buildd
+       } else {
+               class { 'buildd':
+                       ensure => absent
+               }
        }
 
        if getfromhash($site::nodeinfo, 'bugs_mirror') {