puppet-bind/templates/named.conf.erb
2023-09-14 09:25:29 -05:00

55 lines
1.4 KiB
Plaintext

# This file is managed by puppet - changes will be lost
include "<%= @confdir %>/logging.conf";
include "<%= @confdir %>/acls.conf";
include "<%= @confdir %>/keys.conf";
include "<%= @confdir %>/views.conf";
include "<%= @confdir %>/servers.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 -%>
<%- if @forward != '' -%>
forward <%= @forward %>;
<%- end -%>
auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>;
listen-on { any; };
listen-on-v6 { any; };
<%- if @filter_ipv6 -%>
filter-aaaa-on-v4 yes;
<%- end -%>
<%- if @dnssec -%>
dnssec-validation yes;
<%- if @isc_bind_keys -%>
bindkeys-file "<%= @isc_bind_keys %>";
<%- end -%>
<%- end -%>
<%- if @version != '' -%>
version "<%= @version %>";
<%- end -%>
<%- if @tkey_gssapi_credential -%>
tkey-gssapi-credential "<%= @tkey_gssapi_credential %>";
<%- end -%>
<%- if @tkey_domain -%>
tkey-domain "<%= @tkey_domain %>";
<%- end -%>
};
<%- if @include_local -%>
include "<%= @confdir %>/named.conf.local";
<%- end -%>