Add a prototype whohosts function for grouping machines at a common
[mirror/dsa-puppet.git] / manifests / site.pp
index 8331d50..b8dabd4 100644 (file)
@@ -14,14 +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
@@ -67,16 +69,19 @@ node default {
 
 
 # maybe wait for rietz to be upgraded to lenny
-#    case $hostname {
-#        rietz,raff,klecker:
-#                   { include named-secondary }
-#        default:   {}
-#    }
+    case $hostname {
+        rietz,raff,klecker:
+                   { include named::secondary }
+        default:   {}
+    }
 
      case $hostname {
          geo1,geo2,geo3:
-                    { include geodns }
-         default:   {}
+                    {
+                      include named::geodns
+                    }
+         default:   {
+                    }
      }
      case $brokenhosts {
          "true":    { include hosts }