2014-09-30 22:45:41 +02:00
|
|
|
# Enable Features for Icinga 2
|
2014-09-30 23:00:12 +02:00
|
|
|
class icinga2::server::features (
|
2014-09-30 23:35:36 +02:00
|
|
|
$enabled_features = $icinga2::params::server_enabled_features,
|
2014-09-30 22:45:41 +02:00
|
|
|
) {
|
|
|
|
|
|
|
|
# Do some checking
|
2014-09-30 23:08:46 +02:00
|
|
|
validate_array($enabled_features)
|
2014-09-30 22:45:41 +02:00
|
|
|
|
|
|
|
# Pass the features arry to the define to loop though
|
2014-09-30 23:17:59 +02:00
|
|
|
icinga2::server::features::enable { $enabled_features: }
|
2014-09-30 22:45:41 +02:00
|
|
|
|
|
|
|
}
|