]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
(bind zone-master.erb) added support for string (zone_xfers)
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Wed, 24 Nov 2010 09:54:27 +0000 (10:54 +0100)
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Wed, 24 Nov 2010 09:54:27 +0000 (10:54 +0100)
templates/zone-master.erb

index d9e88fded8339b3d3259628d0f1604d6f1ce0c21..2ec3973df85a2b28d2356c146fe93457122655e5 100644 (file)
@@ -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 -%>