Add allow-empty-zones support.

Conflicts:
	manifests/view.pp
	templates/view.erb
This commit is contained in:
Ahmad Jagot 2016-04-14 13:17:53 +01:00
parent 1aebf94b7f
commit 2b8b7ccc41
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ define bind::view (
$recursion_match_clients = 'any',
$recursion_match_destinations = '',
$recursion_match_only = false,
$empty_zones = '',
$order = '10',
) {
$confdir = $::bind::confdir

View File

@ -34,6 +34,9 @@ view "<%= @name %>" {
};
<%- end -%>
<%- end -%>
<%- if @empty_zones != '' -%>
empty-zones-enable <%= @empty_zones ? 'yes' : 'no' %>;
<%- end -%>
<%- if @servers and @servers.is_a?(Array) -%>
<%- @servers.each do |properties| -%>
<%- raise Puppet::Error, 'view servers must have an ip_addr key' unless properties.has_key?('ip_addr') -%>