actually reload ferm when the Ferm::Rules change
[mirror/dsa-puppet.git] / modules / named / manifests / init.pp
1 class named {
2     activate_munin_check {
3         "bind":;
4     }
5
6     package {
7         bind9: ensure => installed;
8     }
9
10     exec {
11         "bind9 restart":
12             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
13             refreshonly => true,
14             ;
15         "bind9 reload":
16             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
17             refreshonly => true,
18             ;
19     }
20     file {
21         "/var/log/bind9":
22             ensure  => directory,
23             owner   => bind,
24             group   => bind,
25             mode    => 775,
26             ;
27     }
28     @ferm::rule { "dsa-bind":
29         domain          => "(ip ip6)",
30         description     => "Allow nameserver access",
31         rule            => "&TCP_UDP_SERVICE(53)"
32     }
33 }
34
35 # vim:set et:
36 # vim:set sts=4 ts=4:
37 # vim:set shiftwidth=4: