|
@@ -19,7 +19,7 @@ class icinga2::params {
|
|
|
# Icinga 2 common package parameters
|
|
|
case $::operatingsystem {
|
|
|
#CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
#Pick the right package provider:
|
|
|
$package_provider = 'yum'
|
|
|
}
|
|
@@ -70,7 +70,7 @@ class icinga2::params {
|
|
|
#Pick the right package parameters based on the OS:
|
|
|
case $::operatingsystem {
|
|
|
#CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
case $::operatingsystemmajrelease {
|
|
|
'5': {
|
|
|
#Icinga 2 server package
|
|
@@ -144,7 +144,7 @@ class icinga2::params {
|
|
|
|
|
|
case $::operatingsystem {
|
|
|
#CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
#Settings for /etc/icinga2/:
|
|
|
$etc_icinga2_owner = 'icinga'
|
|
|
$etc_icinga2_group = 'icinga'
|
|
@@ -244,7 +244,7 @@ class icinga2::params {
|
|
|
|
|
|
case $::operatingsystem {
|
|
|
#Icinga 2 server daemon names for Red Had/CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
case $::operatingsystemmajrelease {
|
|
|
'5': {
|
|
|
$icinga2_server_service_name = 'icinga2'
|
|
@@ -314,7 +314,7 @@ class icinga2::params {
|
|
|
|
|
|
case $::operatingsystem {
|
|
|
#File and template variable names for Red Had/CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
$nrpe_config_basedir = '/etc/nagios'
|
|
|
$nrpe_plugin_libdir = '/usr/lib64/nagios/plugins'
|
|
|
$checkplugin_libdir = '/usr/lib64/nagios/plugins'
|
|
@@ -348,7 +348,7 @@ class icinga2::params {
|
|
|
# Icinga 2 client package parameters
|
|
|
case $::operatingsystem {
|
|
|
#CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
case $::operatingsystemmajrelease {
|
|
|
'5': {
|
|
|
#Pick the right list of client packages:
|
|
@@ -409,7 +409,7 @@ class icinga2::params {
|
|
|
# Icinga 2 client service parameters
|
|
|
case $::operatingsystem {
|
|
|
#Daemon names for Red Had/CentOS systems:
|
|
|
- 'CentOS': {
|
|
|
+ 'CentOS', 'RedHat': {
|
|
|
$nrpe_daemon_name = 'nrpe'
|
|
|
}
|
|
|
|