summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2012-11-14 14:25:03 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2012-11-14 14:25:03 +0100
commit0e517403f9789ad7655e3e87c43a0c70c6e1d494 (patch)
treef7e5b99aac74759fbec95d6c6d7b3e4273602e9b
parent84918208b5a32bff8819c7f58fc1f12ec835c3cb (diff)
downloadpuppet-bind-0e517403f9789ad7655e3e87c43a0c70c6e1d494.tar.gz
puppet-bind-0e517403f9789ad7655e3e87c43a0c70c6e1d494.tar.bz2
corrected bind::zone in order to make slave zones work correctly
-rw-r--r--manifests/zone.pp13
1 files changed, 7 insertions, 6 deletions
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'),
}