Signed-off-by: Stephen Gran <steve@lobefin.net>
+++ /dev/null
-class named::recursor inherits named {
-
- file { '/etc/bind/named.conf.options':
- content => template('named/named.conf.options.erb'),
- notify => Service['bind9'],
- }
-}
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
-<% if classes.include?("named::recursor") -%>
- listen-on-v6 { any; };
-<% else -%>
listen-on { ! 127.0.0.1; any; };
listen-on-v6 { ! ::1; any; };
-<% end -%>
allow-transfer { none; };
allow-update { none; };
<%=
allowed='Nagios; '
- if classes.include?('named::recursor')
- allowed += 'localnets; '
- end
str = "\tallow-recursion { " + allowed + " };\n"
str += "\tallow-query { " + allowed + " };\n"