Skip to content

Commit

Permalink
add defaults for create_resources() of handlers, extension, checks, a…
Browse files Browse the repository at this point in the history
…nd mutators
  • Loading branch information
EslamElHusseiny committed Jan 26, 2016
1 parent 3e39df4 commit 12cfd5e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,13 @@

### START Hiera Lookups ###
$extensions = {},
$extension_defaults = {},
$handlers = {},
$handler_defaults = {},
$checks = {},
$check_defaults = {},
$mutators = {},
$mutator_defaults = {},
### END Hiera Lookups ###

){
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 12cfd5e

Please sign in to comment.