Add support for notify-source and also-notify

Conflicts:
	templates/view.erb
This commit is contained in:
Alex Frolkin
2015-09-11 13:46:40 +01:00
committed by Ahmad Jagot
parent 1aebf94b7f
commit 0f5d3e6019
4 changed files with 20 additions and 1 deletions
+10 -1
View File
@@ -42,7 +42,16 @@ view "<%= @name %>" {
keys { <%= properties['keys'] %>; };
<%- end -%>
};
<%- end -%>
<%- end -%>
<%- if @also_notify and @also_notify != '' -%>
also-notify {
<%- Array(@also_notify).each do |server| -%>
<%= server %>;
<%- end -%>
};
<%- end -%>
<%- if @notify_source and @notify_source != '' -%>
notify-source <%= @notify_source %>;
<%- end -%>
<%- if scope.lookupvar('osfamily') == 'Debian' -%>
include "<%= @confdir %>/named.conf.default-zones";
+3
View File
@@ -40,6 +40,9 @@ zone "<%= @_domain %>" {
<%- if @transfer_source and @transfer_source != ''-%>
transfer-source <%= @transfer_source %>;
<%- end -%>
<%- if @notify_source and @notify_source != ''-%>
notify-source <%= @notify_source %>;
<%- end -%>
<%- if @allow_updates and @allow_updates != '' -%>
allow-update {
<%- Array(@allow_updates).each do |allow_update| -%>