chef/cookbooks/bind9/templates/default/zone.erb
// Generated by Crowbar.
// Do not edit.
<% @zonefile_entries.each do |zonefile_entry| -%>
<% if node[:dns][:master] -%>
zone "<%= zonefile_entry -%>" {
type master;
notify yes;
file "/etc/bind/db.<%= zonefile_entry -%>";
};
<% else -%>
zone "<%= zonefile_entry -%>" {
type slave;
notify no;
masters { <%= @master_ip -%>; };
transfer-source <%= @admin_addr -%>;
file "/etc/bind/slave/db.<%= zonefile_entry -%>";
};
<% end %>
<% end %>