Add a named.conf.puppet-misc
authorPeter Palfrader <peter@palfrader.org>
Sun, 7 Jul 2019 09:10:42 +0000 (11:10 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 7 Jul 2019 09:10:42 +0000 (11:10 +0200)
modules/named/manifests/init.pp
modules/named/templates/named.conf.options.erb

index 7de9a47..80d6e8b 100644 (file)
@@ -50,4 +50,13 @@ class named {
                group   => bind,
                notify  => Service['bind9'],
        }
+
+       concat { '/etc/bind/named.conf.puppet-misc': }
+       concat::fragment { 'dsa-named-conf-puppet-misc---header':
+               target => '/etc/bind/named.conf.puppet-misc',
+               order  => '000',
+               content  => @(EOF)
+                       // THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+                       | EOF
+       }
 }
index 8843d84..4a4627e 100644 (file)
@@ -115,3 +115,4 @@ acl "dnsnodeapi-ACL" {
 <% end -%>
 
 include "/etc/bind/named.conf.puppet-shared-keys";
+include "/etc/bind/named.conf.puppet-misc";