Allow 'explicit' zone notification
Allow the 'explicit' value of a zones notify config to be set as well as yes/no.
This commit is contained in:
parent
309ac6c3ae
commit
6236ad7167
@ -14,8 +14,12 @@ zone "<%= @_domain %>" {
|
|||||||
file "<%= @cachedir %>/<%= @name %>/<%= @zone_file %>";
|
file "<%= @cachedir %>/<%= @name %>/<%= @zone_file %>";
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- if %w(master slave).include? @zone_type -%>
|
<%- if %w(master slave).include? @zone_type -%>
|
||||||
|
<%- if (@ns_notify == 'explicit') -%>
|
||||||
|
notify explicit;
|
||||||
|
<%- else -%>
|
||||||
notify <%= @ns_notify ? 'yes' : 'no' %>;
|
notify <%= @ns_notify ? 'yes' : 'no' %>;
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- end -%>
|
||||||
<%- if @also_notify and @also_notify != '' -%>
|
<%- if @also_notify and @also_notify != '' -%>
|
||||||
also-notify {
|
also-notify {
|
||||||
<%- Array(@also_notify).each do |server| -%>
|
<%- Array(@also_notify).each do |server| -%>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user