move named.conf.debian-zones.erb from authoritative to primary
authorPeter Palfrader <peter@palfrader.org>
Sun, 7 Jul 2019 09:00:55 +0000 (11:00 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 7 Jul 2019 09:00:55 +0000 (11:00 +0200)
modules/named/manifests/authoritative.pp
modules/named/manifests/primary.pp

index d33e406..b924d6e 100644 (file)
@@ -1,8 +1,4 @@
 class named::authoritative inherits named {
-       file { '/etc/bind/named.conf.debian-zones':
-               content => template('named/named.conf.debian-zones.erb'),
-               notify  => Service['bind9'],
-       }
        file { '/etc/bind/named.conf.options':
                content => template('named/named.conf.options.erb'),
                notify  => Service['bind9'],
index b0df105..29f2d62 100644 (file)
@@ -6,4 +6,9 @@ class named::primary inherits named::authoritative {
                description => 'Allow nameserver access',
                rule        => '&TCP_UDP_SERVICE_RANGE(53, ( $HOST_DNS_GEO $HOST_NAGIOS $HOST_RCODE0 $HOST_EASYDNS $HOST_NETNOD ) )',
        }
+
+       file { '/etc/bind/named.conf.debian-zones':
+               content => template('named/named.conf.debian-zones.erb'),
+               notify  => Service['bind9'],
+       }
 }