adding parameters for disabled features

Signed-off-by: Nick Chappell <nick@intronic.org>
This commit is contained in:
Steven Bambling 2014-10-02 06:56:46 -04:00 committed by Nick Chappell
parent a7caedcaa4
commit 715a5d1a88
2 changed files with 4 additions and 1 deletions

View file

@ -62,6 +62,7 @@ class icinga2::params {
#What Icinga 2 features should be enabled when icinga2::server::features class is applied:
$server_enabled_features = ['checker','notification']
$server_disabled_features = []
##############################
# Icinga 2 server package parameters

View file

@ -25,6 +25,7 @@ class icinga2::server (
$server_install_nagios_plugins = $icinga2::params::server_install_nagios_plugins,
$install_mail_utils_package = $icinga2::params::install_mail_utils_package,
$server_enabled_features = $icinga2::params::server_enabled_features
$server_disabled_features = $icinga2::params::server_disabled_features
) inherits icinga2::params {
#Do some validation of parameters so we know we have the right data types:
@ -82,7 +83,8 @@ class icinga2::server (
class {'icinga2::server::install':} ~>
class {'icinga2::server::config':} ~>
class {'icinga2::server::features':
enabled_features => $server_enabled_features,
enabled_features => $server_enabled_features,
disabled_features => $server_disabled_features,
} ~>
class {'icinga2::server::service':}