Add support for the update-policy statement
This commit is contained in:
parent
b44b6ad0ce
commit
1e8d0b3d0d
@ -135,6 +135,7 @@ zone transfers to servers matching an acl:
|
||||
zone_type => 'master',
|
||||
domain => 'example.com',
|
||||
allow_updates => [ 'key local-update', ],
|
||||
update_policies => [ 'grant test.example.net name example.net MX', ],
|
||||
allow_transfers => [ 'secondary-dns', ],
|
||||
ns_notify => true,
|
||||
dnssec => true,
|
||||
|
||||
@ -7,6 +7,7 @@ define bind::zone (
|
||||
$masters = '',
|
||||
$transfer_source = '',
|
||||
$allow_updates = '',
|
||||
$update_policies = '',
|
||||
$allow_transfers = '',
|
||||
$dnssec = false,
|
||||
$key_directory = '',
|
||||
|
||||
@ -47,6 +47,13 @@ zone "<%= @_domain %>" {
|
||||
<%- end -%>
|
||||
};
|
||||
<%- end -%>
|
||||
<%- if @update_policies and @update_policies != '' -%>
|
||||
update-policy {
|
||||
<%- Array(@update_policies).each do |update_policy| -%>
|
||||
<%= update_policy %>;
|
||||
<%- end -%>
|
||||
};
|
||||
<%- end -%>
|
||||
<%- if @allow_transfers and @allow_transfers != '' -%>
|
||||
allow-transfer {
|
||||
<%- Array(@allow_transfers).each do |allow_transfer| -%>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user