calling disable define and adding new params
Signed-off-by: Nick Chappell <nick@intronic.org>
This commit is contained in:
parent
715a5d1a88
commit
6526467f42
1 changed files with 6 additions and 1 deletions
|
@ -1,12 +1,17 @@
|
|||
# Enable Features for Icinga 2
|
||||
class icinga2::server::features (
|
||||
$enabled_features = $icinga2::server::server_enabled_features,
|
||||
$disabled_features = $icinga2::server::server_disabled_features,
|
||||
) {
|
||||
|
||||
# Do some checking
|
||||
validate_array($enabled_features)
|
||||
validate_array($disabled_features)
|
||||
|
||||
# Pass the features arry to the define to loop though
|
||||
#Pass the disabled features array to the define for looping
|
||||
icinga2::server::features::disable { $disabled_features: }
|
||||
|
||||
#Pass the features array to the define for looping
|
||||
icinga2::server::features::enable { $enabled_features: }
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue