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
+2
View File
@@ -9,6 +9,8 @@ define bind::view (
$recursion_match_clients = 'any',
$recursion_match_destinations = '',
$recursion_match_only = false,
$notify_source = '',
$also_notify = [],
$order = '10',
) {
$confdir = $::bind::confdir
+5
View File
@@ -6,6 +6,7 @@ define bind::zone (
$dynamic = true,
$masters = '',
$transfer_source = '',
$notify_source = '',
$allow_updates = '',
$update_policies = '',
$allow_transfers = '',
@@ -48,6 +49,10 @@ define bind::zone (
fail("transfer_source may only be provided for bind::zone resources with zone_type 'slave' or 'stub'")
}
unless !($notify_source != '' and ! member(['master', 'slave'], $zone_type)) {
fail("notify_source may only be provided for bind::zone resources with zone_type 'master' or 'slave'")
}
unless !($allow_updates != '' and ! $dynamic) {
fail("allow_updates may only be provided for bind::zone resources with dynamic set to true")
}