Merge pull request #96 from inkblot/allow-transfer-views

Add `allow-transfers` to views
This commit is contained in:
Nate Riffe 2016-07-04 12:22:13 -05:00 committed by GitHub
commit 0cdd94cf86
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,7 @@ define bind::view (
$recursion_match_clients = 'any',
$recursion_match_destinations = '',
$recursion_match_only = false,
$allow_transfers = '',
$notify_source = '',
$also_notify = '',
$empty_zones = '',

View File

@ -34,6 +34,13 @@ view "<%= @name %>" {
};
<%- end -%>
<%- end -%>
<%- if @allow_transfers and @allow_transfers != '' -%>
allow-transfer {
<%- Array(@allow_transfers).each do |allow_transfer| -%>
<%= allow_transfer %>;
<%- end -%>
};
<%- end -%>
<%- if @empty_zones != '' -%>
empty-zones-enable <%= @empty_zones ? 'yes' : 'no' %>;
<%- end -%>