diff --git a/manifests/init.pp b/manifests/init.pp index 17e761ce1f..cde77e24b6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -345,9 +345,13 @@ ### START Hiera Lookups ### $extensions = {}, + $extension_defaults = {}, $handlers = {}, + $handler_defaults = {}, $checks = {}, + $check_defaults = {}, $mutators = {}, + $mutator_defaults = {}, ### END Hiera Lookups ### ){ @@ -436,10 +440,10 @@ } # Create resources from hiera lookups - create_resources('::sensu::extension', $extensions) - create_resources('::sensu::handler', $handlers) - create_resources('::sensu::check', $checks) - create_resources('::sensu::mutator', $mutators) + create_resources('::sensu::extension', $extensions, $extension_defaults) + create_resources('::sensu::handler', $handlers, $handler_defaults) + create_resources('::sensu::check', $checks, $check_defaults) + create_resources('::sensu::mutator', $mutators, $mutator_defaults) # Include everything and let each module determine its state. This allows # transitioning to purged config and stopping/disabling services