adding parameters for disabled features
Signed-off-by: Nick Chappell <nick@intronic.org>
This commit is contained in:
parent
a7caedcaa4
commit
715a5d1a88
2 changed files with 4 additions and 1 deletions
|
@ -62,6 +62,7 @@ class icinga2::params {
|
||||||
|
|
||||||
#What Icinga 2 features should be enabled when icinga2::server::features class is applied:
|
#What Icinga 2 features should be enabled when icinga2::server::features class is applied:
|
||||||
$server_enabled_features = ['checker','notification']
|
$server_enabled_features = ['checker','notification']
|
||||||
|
$server_disabled_features = []
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Icinga 2 server package parameters
|
# Icinga 2 server package parameters
|
||||||
|
|
|
@ -25,6 +25,7 @@ class icinga2::server (
|
||||||
$server_install_nagios_plugins = $icinga2::params::server_install_nagios_plugins,
|
$server_install_nagios_plugins = $icinga2::params::server_install_nagios_plugins,
|
||||||
$install_mail_utils_package = $icinga2::params::install_mail_utils_package,
|
$install_mail_utils_package = $icinga2::params::install_mail_utils_package,
|
||||||
$server_enabled_features = $icinga2::params::server_enabled_features
|
$server_enabled_features = $icinga2::params::server_enabled_features
|
||||||
|
$server_disabled_features = $icinga2::params::server_disabled_features
|
||||||
) inherits icinga2::params {
|
) inherits icinga2::params {
|
||||||
|
|
||||||
#Do some validation of parameters so we know we have the right data types:
|
#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::install':} ~>
|
||||||
class {'icinga2::server::config':} ~>
|
class {'icinga2::server::config':} ~>
|
||||||
class {'icinga2::server::features':
|
class {'icinga2::server::features':
|
||||||
enabled_features => $server_enabled_features,
|
enabled_features => $server_enabled_features,
|
||||||
|
disabled_features => $server_disabled_features,
|
||||||
} ~>
|
} ~>
|
||||||
class {'icinga2::server::service':}
|
class {'icinga2::server::service':}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue