Adding support for puppet 7
This commit is contained in:
parent
b365dddd3b
commit
15dee34b9e
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"puppet.editorService.puppet.version": "7.25.0"
|
||||||
|
}
|
||||||
@ -25,8 +25,13 @@ class bind::defaults (
|
|||||||
$chroot_class = undef,
|
$chroot_class = undef,
|
||||||
$chroot_dir = undef,
|
$chroot_dir = undef,
|
||||||
) {
|
) {
|
||||||
unless is_bool($supported) {
|
if $facts['puppet_version'] < '7.0.0' {
|
||||||
fail('Please ensure that the dependencies of the bind module are installed and working correctly')
|
unless is_bool($supported) {
|
||||||
|
} else {
|
||||||
|
unless $supported.is_a(Boolean) {
|
||||||
|
fail('Please ensure that the dependencies of the bind module are installed and working correctly')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
unless $supported {
|
unless $supported {
|
||||||
fail('Platform is not supported')
|
fail('Platform is not supported')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user