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.
23 lines
704 B
Puppet
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'),
|
|
}
|
|
}
|