Revision fd3d862b
Added by Warren Clarke over 8 years ago
manifests/zone.pp | ||
---|---|---|
$serial = 1,
|
||
$masters = [],
|
||
$allow_transfer = [],
|
||
$also_notify = [],
|
||
$zone = $title,
|
||
$contact = "root.${title}.",
|
||
$zonefilepath = $::dns::zonefilepath,
|
||
... | ... | |
) {
|
||
|
||
validate_bool($reverse, $manage_file)
|
||
validate_array($masters, $allow_transfer, $forwarders)
|
||
validate_array($masters, $allow_transfer, $forwarders, $also_notify)
|
||
validate_re($forward, '^(first|only)$', 'Only \'first\' or \'only\' are valid values for forward field')
|
||
|
||
$zonefilename = "${zonefilepath}/${filename}"
|
Also available in: Unified diff
allow user to control also-notify on a zone level
Signed-off-by: Warren Clarke <wclarke1@gmail.com>
added tests to spec file and validate_array in manifests
Closes GH-43
Signed-off-by: Warren Clarke <wclarke@lastminute.com>