and actually quote correctly
[mirror/dsa-puppet.git] / modules / munin-node / manifests / init.pp
index 91e1e78..0849cc1 100644 (file)
@@ -1,6 +1,6 @@
-define activate_munin_check($ensure=present, $script=$name) {
+define activate_munin_check($ensure=present, $script = none) {
     case $script {
-        "": { $link = $name }
+        none: { $link = $name }
         default: { $link = $script }
     }
 
@@ -75,5 +75,10 @@ class munin-node {
         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
         refreshonly => true,
     }
+    ferm::rule { "dsa-munin":
+            domain          => "(ip ip6)",
+            description     => "Allow munin from munin master",
+            rule            => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN) ACCEPT; }"
+    }
 }