<% if @tsig.unwrap != "" -%>
key:
	name: tsig.<%= @name %>
	secret: "<%= @tsig.unwrap %>"

<% end -%>
zone:
	name: "<%= @name %>"
	zonefile: "<%= @zone_path %>"
<% if @primary -%>
<% @peers.each do |peer| -%>
<% if peer != @ipv4 and peer != @ipv6 -%>
	notify: <%= peer %> NOKEY
	provide-xfr: <%= peer %> tsig.<%= @name %>
<% end -%>
<% end -%>
<% else -%>
<% @peers.each do |peer| -%>
<% if peer != @ipv4 and peer != @ipv6 -%>
	allow-notify: <%= peer %> NOKEY
	request-xfr: <%= peer %> tsig.<%= @name %>
<% end -%>
<% end -%>
<% end -%>
