From: Cédric Jeanneret Date: Wed, 24 Nov 2010 09:53:48 +0000 (+0100) Subject: (bind - zone-slave.erb) updated template (var name was wrong, and added support strin... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4dcd4f90f65da68e92df0c238cce4dc224258e59;p=puppet-bind.git (bind - zone-slave.erb) updated template (var name was wrong, and added support string and array) --- 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; }