Adding support for puppet 7

This commit is contained in:
Matthew 2023-09-12 12:35:31 -05:00
parent b365dddd3b
commit 15dee34b9e
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"puppet.editorService.puppet.version": "7.25.0"
}

View File

@ -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')