From 08dbd5d4ed76d81de311bd1b9aa99b6145a1d686 Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Mon, 3 Sep 2012 14:22:25 -0500 Subject: [PATCH] Define boilerplate acl, view, and zone configs --- manifests/init.pp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 9d1ab36..c54c667 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -13,4 +13,32 @@ class bind ( hasstatus => true, require => Package[$bind::params::bind_package], } + + concat { [ + "${bind::params::confdir}/acls.conf" + "${bind::params::confdir}/views.conf" + "${bind::params::confdir}/zones.conf" + ]: + owner => $bind::params::bind_user, + group => $bind::params::bind_group, + mode => '0644', + } + + concat::fragment { "named-acls-header": + order => '00', + target => "${bind::params::confdir}/acls.conf", + content => "# This file is managed by puppet - changes will be lost\n", + } + + concat::fragment { "named-views-header": + order => '00', + target => "${bind::params::confdir}/views.conf", + content => "# This file is managed by puppet - changes will be lost\n", + } + + concat::fragment { "named-zones-header": + order => '00', + target => "${bind::params::confdir}/zones.conf", + content => "# This file is managed by puppet - changes will be lost\n", + } }