From: Cédric Jeanneret Date: Wed, 24 Nov 2010 09:54:27 +0000 (+0100) Subject: (bind zone-master.erb) added support for string (zone_xfers) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=95d23c3c2b1f1ca1e910f36f5b9ddcec20ad31a9;p=puppet-bind.git (bind zone-master.erb) added support for string (zone_xfers) --- 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 -%>