summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeanneret Cedric <contact@internux.ch>2012-11-14 06:02:16 -0800
committerJeanneret Cedric <contact@internux.ch>2012-11-14 06:02:16 -0800
commit134bf69ee0d548901ace189cf1039361b3691f37 (patch)
treecc64ca19956cac5cace2e6e4a47093cc9e2811f6
parent84918208b5a32bff8819c7f58fc1f12ec835c3cb (diff)
parent93ad475ebdee5685f52e1ca943581f48298851a7 (diff)
downloadpuppet-bind-134bf69ee0d548901ace189cf1039361b3691f37.tar.gz
puppet-bind-134bf69ee0d548901ace189cf1039361b3691f37.tar.bz2
Merge pull request #8 from cjeanneret/bind-slave
Bind slave
-rw-r--r--manifests/zone.pp13
-rw-r--r--templates/zone-slave.erb2
2 files changed, 8 insertions, 7 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'),
}
diff --git a/templates/zone-slave.erb b/templates/zone-slave.erb
index b5b3754..5f6acca 100644
--- a/templates/zone-slave.erb
+++ b/templates/zone-slave.erb
@@ -8,4 +8,4 @@ zone <%=name%> IN {
<% end -%>
allow-query { any; };
notify yes;
-}
+};