Put the yaml in the tree and call the right file
[mirror/dsa-puppet.git] / manifests / site.pp
index f264230..2e636b5 100644 (file)
@@ -18,7 +18,9 @@ node default {
     include sudo
     include debian-org
     include monit
-    include motd
+    include samhain
+
+    $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
 
     case $smartarraycontroller {
         "true":    { include debian-proliant }
@@ -30,20 +32,16 @@ node default {
         default:   {}
     }
 
-    import "nagios"
-    include nagios-client
 
     case $hostname {
-        morales:   {}
-        default:   { include samhain }
-    }
-
-    case $hostname {
-        spohr:     {
-                      import "nagios"
-                      include nagios-server
-                   }
-        default:   {}
+        spohr: {
+                      include nagios::server
+                      include motd::new
+        }
+        default: {
+                     include nagios::client
+                      include motd
+       }
     }
 
     case $apache2 {