Add support for zone notification options
This commit is contained in:
parent
f30747d10b
commit
28225f59e9
@ -5,6 +5,9 @@ define bind::zone (
|
||||
$allow_updates = [],
|
||||
$allow_transfers = [],
|
||||
$dnssec = false,
|
||||
$notify_ns = true,
|
||||
$also_notify = [],
|
||||
$allow_notify = [],
|
||||
) {
|
||||
$cachedir = $bind::cachedir
|
||||
|
||||
|
||||
@ -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 -%>
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user