add namedconf parameter with default undef that will pull it's value for the module_data hiera backend. change the file resource for named.conf to use this value instead of being relative to the confdir parameter. This is needed because redhat based derivatives store the named.conf file under /etc not /etc/named/
This commit is contained in:
parent
ed93592837
commit
616b32e8f5
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class bind (
|
class bind (
|
||||||
$confdir = undef,
|
$confdir = undef,
|
||||||
|
$namedonf = undef,
|
||||||
$cachedir = undef,
|
$cachedir = undef,
|
||||||
$forwarders = undef,
|
$forwarders = undef,
|
||||||
$dnssec = undef,
|
$dnssec = undef,
|
||||||
@ -59,7 +60,7 @@ class bind (
|
|||||||
recurse => true,
|
recurse => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "${confdir}/named.conf":
|
file { "${namedconf}":
|
||||||
content => template('bind/named.conf.erb'),
|
content => template('bind/named.conf.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user