Add support for the update-policy statement

This commit is contained in:
Mike Bryant 2015-06-11 15:56:01 +01:00
parent b44b6ad0ce
commit 1e8d0b3d0d
3 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -7,6 +7,7 @@ define bind::zone (
$masters = '',
$transfer_source = '',
$allow_updates = '',
$update_policies = '',
$allow_transfers = '',
$dnssec = false,
$key_directory = '',

View File

@ -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| -%>