Add a prototype whohosts function for grouping machines at a common
[mirror/dsa-puppet.git] / manifests / site.pp
index 2e8000b..b8dabd4 100644 (file)
@@ -14,13 +14,16 @@ Exec {
 }
 
 node default {
+    $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
+    $hoster   = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
+
     include munin-node
     include sudo
+    include ssh
     include debian-org
     include monit
     include apt-keys
-
-    $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
+    include ntp
 
     include motd
     include samhain
@@ -55,26 +58,33 @@ node default {
            default: { }
      }
 
+     case extractnodeinfo($nodeinfo, 'buildd') {
+          "true":  { include buildd }
+           default: { }
+     }
+     case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
+          "true":  { include apache2::security_mirror }
+           default: { }
+     }
+
+
+# maybe wait for rietz to be upgraded to lenny
     case $hostname {
-        ancina,arcadelt,argento,brahms,goedel,goetz,lafayette,malo,murphy,praetorius,puccini,paer:
-                   { include buildd }
+        rietz,raff,klecker:
+                   { include named::secondary }
         default:   {}
     }
 
-# maybe wait for rietz to be upgraded to lenny
-#    case $hostname {
-#        rietz,raff,klecker:
-#                   { include named-secondary }
-#        default:   {}
-#    }
-
      case $hostname {
          geo1,geo2,geo3:
-                    { include geodns }
+                    {
+                      include named::geodns
+                    }
+         default:   {
+                    }
+     }
+     case $brokenhosts {
+         "true":    { include hosts }
          default:   {}
      }
 }
-
-node penalosa inherits default {
-    include hosts
-}