From 0388e91dc64b1c08c8b59539790e68b2527876f8 Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Tue, 12 Jan 2016 20:03:14 -0600 Subject: [PATCH] Try to validate that module-data is working `bind::defaults::supported` should always have a boolean value. If it does not, then this means either 1) user error (e.g. the user defined some other value for the key) or 2) module_data is not functioning correctly. --- manifests/defaults.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/defaults.pp b/manifests/defaults.pp index 18c6976..8336c96 100644 --- a/manifests/defaults.pp +++ b/manifests/defaults.pp @@ -13,6 +13,9 @@ class bind::defaults ( $nsupdate_package = undef, $managed_keys_directory = undef, ) { + unless is_bool($supported) { + fail('Please ensure that the dependencies of the bind module are installed and working correctly') + } unless $supported { fail('Platform is not supported') }