Distro packaging includes a lot of configuration files that this module tries and fails to get rid of, but with exclusions. Those don't always work for mysterious reasons. Leave the distributed files intact as much as possible, with just the necessary files touched to effect the desired configuration. Also, make inclusion of named.conf.local optional (default false) and stop ensuring that there's at least an empty one.
36 lines
858 B
Plaintext
36 lines
858 B
Plaintext
# This file is managed by puppet - changes will be lost
|
|
include "<%= @confdir %>/acls.conf";
|
|
include "<%= @confdir %>/keys.conf";
|
|
include "<%= @confdir %>/views.conf";
|
|
<%- if @statistics_port -%>
|
|
|
|
statistics-channels {
|
|
inet 127.0.0.1 port <%= @statistics_port %> allow { 127.0.0.1; };
|
|
};
|
|
<%- end -%>
|
|
|
|
options {
|
|
directory "<%= @cachedir %>";
|
|
<%- if @forwarders and @forwarders != '' -%>
|
|
forwarders {
|
|
<%- Array(@forwarders).each do |forwarder| -%>
|
|
<%= forwarder %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>;
|
|
listen-on-v6 { any; };
|
|
dnssec-enable <%= @dnssec ? 'yes' : 'no' %>;
|
|
<%- if @dnssec -%>
|
|
dnssec-validation yes;
|
|
dnssec-lookaside auto;
|
|
<%- end -%>
|
|
<%- if @version != '' -%>
|
|
version "<%= @version %>";
|
|
<%- end -%>
|
|
};
|
|
<%- if @include_local -%>
|
|
|
|
include "<%= @confdir %>/named.conf.local";
|
|
<%- end -%>
|