From: Cédric Jeanneret Date: Wed, 14 Nov 2012 13:25:03 +0000 (+0100) Subject: corrected bind::zone in order to make slave zones work correctly X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0e517403f9789ad7655e3e87c43a0c70c6e1d494;p=puppet-bind.git corrected bind::zone in order to make slave zones work correctly --- diff --git a/manifests/zone.pp b/manifests/zone.pp index d7fbc40..1b61788 100644 --- a/manifests/zone.pp +++ b/manifests/zone.pp @@ -40,12 +40,6 @@ define bind::zone ( case $ensure { present: { - concat {"/etc/bind/pri/${name}.conf": - owner => root, - group => root, - mode => '0644', - } - concat {"/etc/bind/zones/${name}.conf": owner => root, group => root, @@ -81,6 +75,13 @@ define bind::zone ( fail "No ttl defined for ${name}!" } + concat {"/etc/bind/pri/${name}.conf": + owner => root, + group => root, + mode => '0644', + } + + Concat::Fragment["bind.zones.${name}"] { content => template('bind/zone-master.erb'), }