diff --git a/manifests/zone.pp b/manifests/zone.pp index d93de12..606ca8c 100644 --- a/manifests/zone.pp +++ b/manifests/zone.pp @@ -5,6 +5,9 @@ define bind::zone ( $allow_updates = [], $allow_transfers = [], $dnssec = false, + $notify_ns = true, + $also_notify = [], + $allow_notify = [], ) { $cachedir = $bind::cachedir diff --git a/templates/zone.conf.erb b/templates/zone.conf.erb index 5153571..343f30e 100644 --- a/templates/zone.conf.erb +++ b/templates/zone.conf.erb @@ -31,5 +31,20 @@ zone "<%= _domain %>" { <%= allow_transfer %>; <%- end -%> }; +<%- end -%> + notify <%= ns_notify ? 'yes' : 'no' %>; +<%- if not also_notify.empty? -%> + also-notify { +<%- also_notify.each do |server| -%> + <%= server %>; +<%- end -%> + }; +<%- end -%> +<%- if not allow_notify.empty? -%> + allow-notify { +<%- allow_notify.each do |server| -%> + <%= server %>; +<%- end -%> + }; <%- end -%> };