puppet-bind/templates/named.conf.erb
Nate Riffe 1658fd82c3 Set managed-keys-directory
This is needed on RedHat derivatives.
2015-12-19 09:14:18 -06:00

39 lines
997 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 @managed_keys_directory and @managed_keys_directory != '' -%>
managed-keys-directory "<%= @managed_keys_directory %>";
<%- end -%>
<%- 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 -%>