Merge pull request #44 from ocadotechnology/wip-update-policy

Add support for the update-policy statement
This commit is contained in:
Nate Riffe 2015-06-12 19:14:14 -05:00
commit 4241f29c50
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', zone_type => 'master',
domain => 'example.com', domain => 'example.com',
allow_updates => [ 'key local-update', ], allow_updates => [ 'key local-update', ],
update_policies => [ 'grant test.example.net name example.net MX', ],
allow_transfers => [ 'secondary-dns', ], allow_transfers => [ 'secondary-dns', ],
ns_notify => true, ns_notify => true,
dnssec => true, dnssec => true,

View File

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

View File

@ -47,6 +47,13 @@ zone "<%= @_domain %>" {
<%- end -%> <%- end -%>
}; };
<%- 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 != '' -%> <%- if @allow_transfers and @allow_transfers != '' -%>
allow-transfer { allow-transfer {
<%- Array(@allow_transfers).each do |allow_transfer| -%> <%- Array(@allow_transfers).each do |allow_transfer| -%>