summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-24 10:53:48 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-24 10:53:48 +0100
commit4dcd4f90f65da68e92df0c238cce4dc224258e59 (patch)
treefe25daeb0ea79e27a84f19cff31c07d29b5928d8
parent359d086d80e4cac3ea83cce6a61c8f828b72a5b1 (diff)
downloadpuppet-bind-4dcd4f90f65da68e92df0c238cce4dc224258e59.tar.gz
puppet-bind-4dcd4f90f65da68e92df0c238cce4dc224258e59.tar.bz2
(bind - zone-slave.erb) updated template (var name was wrong, and added support string and array)
-rw-r--r--templates/zone-slave.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/zone-slave.erb b/templates/zone-slave.erb
index 02364c1..b5b3754 100644
--- a/templates/zone-slave.erb
+++ b/templates/zone-slave.erb
@@ -1,7 +1,11 @@
# File managed by puppet
zone <%=name%> IN {
type slave;
- masters { <%= masters.collect! {|i| "#{i}" }.join('; ') -%> };
+ <% if zone_masters.is_a?(Array) -%>
+ masters { <%= zone_masters.join('; ') -%>; };
+ <% else -%>
+ masters { <%= zone_masters %>; };
+ <% end -%>
allow-query { any; };
notify yes;
}