# THIS CONFIGURATION IS MANAGED BY PUPPET
# see man 5 knot.conf for all available configuration options
<%- @zones.each do |k,v| -%>
<%= k -%> {
  file "<%= k -%>.zone";
<%- if (@zone_defaults && v && v.length > 0) then _v = @zone_defaults.merge(v) -%>
<%- elsif (v && v.length > 0) then _v = v -%>
<%- elsif (@zone_defaults && @zone_defaults.length > 0) then _v = @zone_defaults -%>
<%- end -%>
<%- if (_v && _v.length > 0) then _v.each do |y,z| -%>
  <%= y %> <%= z %>;
<%- end end -%>
}
<%- end -%>

# THIS CONFIGURATION IS MANAGED BY PUPPET
# see man 5 knot.conf for all available configuration options
<%- @zones.each do |k,v| -%>
<%= k -%> {
  file "<%= k.gsub(/\//, "_") -%>.zone";
<%- if (@zone_defaults && v && v.length > 0) then _v = @zone_defaults.merge(v) -%>
<%- elsif (v && v.length > 0) then _v = v -%>
<%- elsif (@zone_defaults && @zone_defaults.length > 0) then _v = @zone_defaults -%>
<%- end -%>
<%- if (_v && _v.length > 0) then _v.each do |y,z| -%>
  <%= y %> <%= z %>;
<%- end end -%>
}
<%- end -%>

Support of slash character in zone names.
Support of slash character in zone names.
