]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
(bind - zone-slave.erb) updated template (var name was wrong, and added support strin...
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Wed, 24 Nov 2010 09:53:48 +0000 (10:53 +0100)
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Wed, 24 Nov 2010 09:53:48 +0000 (10:53 +0100)
templates/zone-slave.erb

index 02364c1e1ed065f4851b111ed78cd1ba56f1e9e8..b5b3754ab92998cecdd76bd7e3aa660bee53ca5d 100644 (file)
@@ -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;
 }