puppet-bind/templates/zone.conf.erb
2012-10-04 19:04:21 -05:00

51 lines
1.1 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 -%>
};