get rid of way too many munin subclasses
[mirror/dsa-puppet.git] / modules / named / manifests / init.pp
index 0c75aeb..b523375 100644 (file)
@@ -1,5 +1,7 @@
 class named {
-        include munin-node::bind
+        activate_munin_check {
+                "bind":;
+        }
 
         package {
                 bind9: ensure => installed;
@@ -17,6 +19,19 @@ class named {
                         refreshonly => true,
                         ;
         }
+        file {
+                "/var/log/bind9":
+                        ensure  => directory,
+                        owner   => bind,
+                        group   => bind,
+                        mode    => 775,
+                        ;
+        }
+        @ferm::rule { "dsa-bind":
+                domain          => "(ip ip6)",
+                description     => "Allow nameserver access",
+                rule            => "&TCP_UDP_SERVICE(53)"
+        }
 }
 
 # vim: set fdm=marker ts=8 sw=8 et: