}
case $hostname {
- klecker,ravel,senfl,orff: { include named::secondary }
- geo1,geo2,geo3: { include named::geodns }
+ klecker,ravel,senfl,orff,draghi: { include named::authoritative }
+ geo1,geo2,geo3: { include named::geodns }
bartok,franck,liszt,master,samosa,schein,spohr,steffani: { include named::recursor }
}
--- /dev/null
+class named::authoritative inherits named {
+ file {
+ "/etc/bind/named.conf.debian-zones":
+ source => [ "puppet:///modules/named/per-host/$fqdn/named.conf.debian-zones",
+ "puppet:///modules/named/common/named.conf.debian-zones" ],
+ notify => Exec["bind9 reload"];
+ "/etc/bind/named.conf.options":
+ content => template("named/named.conf.options.erb"),
+ notify => Exec["bind9 reload"];
+ }
+ file { "/etc/bind/named.conf.shared-keys":
+ mode => 640,
+ owner => root,
+ group => bind,
+ }
+}
+
+# vim:set et:
+# vim:set sts=4 ts=4:
+# vim:set shiftwidth=4:
+++ /dev/null
-class named::secondary inherits named {
- file {
- "/etc/bind/named.conf.debian-zones":
- source => [ "puppet:///modules/named/per-host/$fqdn/named.conf.debian-zones",
- "puppet:///modules/named/common/named.conf.debian-zones" ],
- notify => Exec["bind9 reload"];
- "/etc/bind/named.conf.options":
- content => template("named/named.conf.options.erb"),
- notify => Exec["bind9 reload"];
- }
- file { "/etc/bind/named.conf.shared-keys":
- mode => 640,
- owner => root,
- group => bind,
- }
-}
-
-# vim:set et:
-# vim:set sts=4 ts=4:
-# vim:set shiftwidth=4:
<%=
allowed='Nagios; '
- if classes.include?('named::secondary') or classes.include?('named::recursor')
+ if classes.include?('named::authoritative') or classes.include?('named::recursor')
allowed += 'localnets; '
end
str
-%>
-<% if classes.include?('named::secondary') or classes.include?('named::geodns') -%>
+<% if classes.include?('named::authoritative') or classes.include?('named::geodns') -%>
dnssec-enable yes;
dnssec-validation yes;
<% end -%>
<% if classes.include?('named::geodns') -%>
dir=1/etc/bind/geodns
<% end -%>
-<% if classes.include?('named::secondary') -%>
+<% if classes.include?('named::authoritative') -%>
dir=1/etc/bind
file=/etc/bind/named.conf.debian-zones
<% end -%>