Add support for zone notification options

This commit is contained in:
Nate Riffe 2012-10-04 19:04:21 -05:00
parent f30747d10b
commit 28225f59e9
2 changed files with 18 additions and 0 deletions

View File

@ -5,6 +5,9 @@ define bind::zone (
$allow_updates = [],
$allow_transfers = [],
$dnssec = false,
$notify_ns = true,
$also_notify = [],
$allow_notify = [],
) {
$cachedir = $bind::cachedir

View File

@ -31,5 +31,20 @@ zone "<%= _domain %>" {
<%= 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 -%>
};