calling disable define and adding new params

Signed-off-by: Nick Chappell <nick@intronic.org>
This commit is contained in:
Steven Bambling 2014-10-02 07:00:43 -04:00 committed by Nick Chappell
parent 715a5d1a88
commit 6526467f42

View file

@ -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: }
}