puppet-bind/manifests/view.pp
Nate Riffe 57002c31a4 Include the default zones on RedHat
RedHat's default zones are baked into the stock named.conf, which the module's
template completely rewrites. Since the module is extremely view-based, and the
Debian default-zones are repositioned into the zones, let's take those defaults
out of the stock named.conf, build a configuration file out of them and include
it in the view just the same.
2016-01-29 07:32:54 -06:00

23 lines
704 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,
$order = '10',
) {
$confdir = $::bind::confdir
$default_zones_include = $::bind::default_zones_include
concat::fragment { "bind-view-${name}":
order => $order,
target => "${::bind::confdir}/views.conf",
content => template('bind/view.erb'),
}
}