Add allow-empty-zones support.
Conflicts: manifests/view.pp templates/view.erb
This commit is contained in:
parent
1aebf94b7f
commit
2b8b7ccc41
@ -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,
|
||||||
|
$empty_zones = '',
|
||||||
$order = '10',
|
$order = '10',
|
||||||
) {
|
) {
|
||||||
$confdir = $::bind::confdir
|
$confdir = $::bind::confdir
|
||||||
|
|||||||
@ -34,6 +34,9 @@ view "<%= @name %>" {
|
|||||||
};
|
};
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- if @empty_zones != '' -%>
|
||||||
|
empty-zones-enable <%= @empty_zones ? 'yes' : 'no' %>;
|
||||||
|
<%- end -%>
|
||||||
<%- if @servers and @servers.is_a?(Array) -%>
|
<%- if @servers and @servers.is_a?(Array) -%>
|
||||||
<%- @servers.each do |properties| -%>
|
<%- @servers.each do |properties| -%>
|
||||||
<%- raise Puppet::Error, 'view servers must have an ip_addr key' unless properties.has_key?('ip_addr') -%>
|
<%- raise Puppet::Error, 'view servers must have an ip_addr key' unless properties.has_key?('ip_addr') -%>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user