From 616b32e8f5e99dbdda2ba6bd06f8c7c2f554c691 Mon Sep 17 00:00:00 2001 From: Trevor Smith Date: Thu, 19 Mar 2015 12:04:43 -0400 Subject: [PATCH] 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/ --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 6257df6..c8249e3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -2,6 +2,7 @@ class bind ( $confdir = undef, + $namedonf = undef, $cachedir = undef, $forwarders = undef, $dnssec = undef, @@ -59,7 +60,7 @@ class bind ( recurse => true, } - file { "${confdir}/named.conf": + file { "${namedconf}": content => template('bind/named.conf.erb'), }