summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-24 10:54:27 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-24 10:54:27 +0100
commit95d23c3c2b1f1ca1e910f36f5b9ddcec20ad31a9 (patch)
treed24884e4b7e9fa157ce4685c4b80b98922edc333
parent4dcd4f90f65da68e92df0c238cce4dc224258e59 (diff)
downloadpuppet-bind-95d23c3c2b1f1ca1e910f36f5b9ddcec20ad31a9.tar.gz
puppet-bind-95d23c3c2b1f1ca1e910f36f5b9ddcec20ad31a9.tar.bz2
(bind zone-master.erb) added support for string (zone_xfers)
-rw-r--r--templates/zone-master.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/zone-master.erb b/templates/zone-master.erb
index d9e88fd..2ec3973 100644
--- a/templates/zone-master.erb
+++ b/templates/zone-master.erb
@@ -3,7 +3,11 @@ zone "<%=name%>" IN {
type master;
file "/etc/bind/pri/<%=name%>.conf";
<% if zone_xfers and not zone_xfers.empty? -%>
- allow-transfer { <%= zone_xfers.collect! {|i| "#{i}" }.join('; ') -%> };
+ <% if zone_xfers.is_a?(Array) -%>
+ allow-transfer { <%= zone_xfers.join('; ') -%>; };
+ <% else -%>
+ allow-transfer { <%= zone_xfers %>; };
+ <% end -%>
<% else -%>
allow-transfer { none; };
<% end -%>