diff options
-rw-r--r-- | templates/zone-slave.erb | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |