// USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
//
-acl Nagios {
-<%=
- roles = scope.lookupvar('deprecated::roles')
- str = ''
- roles['nagiosmaster'].each do |node|
- str += scope.lookupvar('deprecated::allnodeinfo')[node]['ipHostNumber'].collect do |ip|
- if ip =~ /:/
- "\t#{ip}/128;\n"
- else
- "\t#{ip}/32;\n"
- end
- end.join("")
- end
- str-%>
-};
-
options {
directory "/var/cache/bind";
blackhole { 192.168.0.0/16; 10.0.0.0/8; 172.16.0.0/12; };
<% end -%>
-<%=
- allowed='Nagios; '
-
- str = "\tallow-recursion { " + allowed + " };\n"
- str += "\tallow-query { " + allowed + " };\n"
-
- str
--%>
-
dnssec-enable yes;
dnssec-validation yes;