From 4dcd4f90f65da68e92df0c238cce4dc224258e59 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Wed, 24 Nov 2010 10:53:48 +0100 Subject: (bind - zone-slave.erb) updated template (var name was wrong, and added support string and array) --- templates/zone-slave.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3