puppet-bind/manifests/view.pp
Nate Riffe de1a021911 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.
2016-07-04 10:18:38 -05:00

29 lines
967 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,
$allow_transfers = '',
$notify_source = '',
$also_notify = '',
$empty_zones = '',
$order = '10',
$minimal_responses = false,
) {
$confdir = $::bind::confdir
$default_zones_include = $::bind::default_zones_include
$include_default_zones = $::bind::include_default_zones
concat::fragment { "bind-view-${name}":
order => $order,
target => "${::bind::confdir}/views.conf",
content => template('bind/view.erb'),
}
}