61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
|
|
# This file managed by puppet - changes will be lost
|
|
zone "<%= _domain %>" {
|
|
type <%= zone_type %>;
|
|
<%- if has_zone_file -%>
|
|
<%- if dnssec -%>
|
|
auto-dnssec maintain;
|
|
key-directory "<%= cachedir %>/<%= name %>";
|
|
file "<%= cachedir %>/<%= name %>/<%= _domain %>.signed";
|
|
<%- else -%>
|
|
file "<%= cachedir %>/<%= name %>/<%= _domain %>";
|
|
<%- end -%>
|
|
<%- end -%>
|
|
<%- if not masters.empty? -%>
|
|
masters {
|
|
<%- masters.each do |master| -%>
|
|
<%= master %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
<%- if not allow_updates.empty? -%>
|
|
allow-update {
|
|
<%- allow_updates.each do |allow_update| -%>
|
|
<%= allow_update %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
<%- if not allow_transfers.empty? -%>
|
|
allow-transfer {
|
|
<%- allow_transfers.each do |allow_transfer| -%>
|
|
<%= allow_transfer %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
notify <%= ns_notify ? 'yes' : 'no' %>;
|
|
<%- if not also_notify.empty? -%>
|
|
also-notify {
|
|
<%- also_notify.each do |server| -%>
|
|
<%= server %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
<%- if not allow_notify.empty? -%>
|
|
allow-notify {
|
|
<%- allow_notify.each do |server| -%>
|
|
<%= server %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
<%- if forward != '' -%>
|
|
forward <%= forward %>;
|
|
<%- end -%>
|
|
<%- if not forwarders.empty? -%>
|
|
forwarders {
|
|
<%- forwarders.each do |forwarder| -%>
|
|
<%= forwarder %>;
|
|
<%- end -%>
|
|
};
|
|
<%- end -%>
|
|
};
|