Add allow-transfers to views
Views support an `allow-transfer` directive essentially identical to the one in zones. Copy the code from `manifests/zone.pp` and `templates/zone.conf.erb` to support it.
This commit is contained in:
parent
cd6e0f8b9c
commit
de1a021911
@ -9,6 +9,7 @@ define bind::view (
|
|||||||
$recursion_match_clients = 'any',
|
$recursion_match_clients = 'any',
|
||||||
$recursion_match_destinations = '',
|
$recursion_match_destinations = '',
|
||||||
$recursion_match_only = false,
|
$recursion_match_only = false,
|
||||||
|
$allow_transfers = '',
|
||||||
$notify_source = '',
|
$notify_source = '',
|
||||||
$also_notify = '',
|
$also_notify = '',
|
||||||
$empty_zones = '',
|
$empty_zones = '',
|
||||||
|
|||||||
@ -34,6 +34,13 @@ view "<%= @name %>" {
|
|||||||
};
|
};
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- if @allow_transfers and @allow_transfers != '' -%>
|
||||||
|
allow-transfer {
|
||||||
|
<%- Array(@allow_transfers).each do |allow_transfer| -%>
|
||||||
|
<%= allow_transfer %>;
|
||||||
|
<%- end -%>
|
||||||
|
};
|
||||||
|
<%- end -%>
|
||||||
<%- if @empty_zones != '' -%>
|
<%- if @empty_zones != '' -%>
|
||||||
empty-zones-enable <%= @empty_zones ? 'yes' : 'no' %>;
|
empty-zones-enable <%= @empty_zones ? 'yes' : 'no' %>;
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user