Added a subsection for server service parameters and case statement to pick the Icinga 2 daemon name based on the OS; added a service resource for the Icinga 2 daemon; uncommented the squiggly arrows so the icinga2::server::service class gets applied.
This commit is contained in:
parent
995f4877a7
commit
9c83a449e0
1 changed files with 15 additions and 0 deletions
|
@ -194,6 +194,21 @@ class icinga2::params {
|
|||
##################
|
||||
# Icinga 2 server service settings
|
||||
|
||||
case $operatingsystem {
|
||||
#Icinga 2 server daemon names for Red Had/CentOS systems:
|
||||
'RedHat', 'CentOS': {
|
||||
$icinga2_server_service_name = 'icinga2'
|
||||
}
|
||||
|
||||
#Icinga 2 server daemon names for Debian/Ubuntu systems:
|
||||
/^(Debian|Ubuntu)$/: {
|
||||
$icinga2_server_service_name = 'icinga2'
|
||||
}
|
||||
|
||||
#Fail if we're on any other OS:
|
||||
default: { fail("${operatingsystem} is not supported!") }
|
||||
}
|
||||
|
||||
##############################
|
||||
# Icinga 2 client parameters
|
||||
##############################
|
||||
|
|
Loading…
Reference in a new issue