puppet-bind/manifests/view.pp
Nate Riffe dcbba5a0cb Harmonize default value for also_notify
The template code that processes also_notify is of a kind with the checks and
processing of other optional smart-array values. Make its default an empty
string so that the clause may be properly omitted from a config that doesn't
use it.
2016-05-06 15:18:53 -05:00

26 lines
807 B
Puppet

# ex: syntax=puppet si ts=4 sw=4 et
define bind::view (
$match_clients = 'any',
$match_destinations = '',
$servers = {},
$zones = [],
$recursion = true,
$recursion_match_clients = 'any',
$recursion_match_destinations = '',
$recursion_match_only = false,
$notify_source = '',
$also_notify = '',
$empty_zones = '',
$order = '10',
$minimal_responses = false,
) {
$confdir = $::bind::confdir
concat::fragment { "bind-view-${name}":
order => $order,
target => "${::bind::confdir}/views.conf",
content => template('bind/view.erb'),
}
}