diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6ddfe89 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "puppet.editorService.puppet.version": "7.25.0" +} \ No newline at end of file diff --git a/manifests/defaults.pp b/manifests/defaults.pp index 1001242..aa4137d 100644 --- a/manifests/defaults.pp +++ b/manifests/defaults.pp @@ -25,8 +25,13 @@ class bind::defaults ( $chroot_class = undef, $chroot_dir = undef, ) { - unless is_bool($supported) { - fail('Please ensure that the dependencies of the bind module are installed and working correctly') + if $facts['puppet_version'] < '7.0.0' { + 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 { fail('Platform is not supported')