Adding support for RedHat

This commit is contained in:
Alexandre Beche 2014-12-12 15:42:58 +01:00
parent 2f375443ce
commit bb523a9dc6
2 changed files with 8 additions and 8 deletions

View file

@ -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'
}

View file

@ -33,7 +33,7 @@ class icinga2::server::install::repos inherits icinga2::server {
if $manage_repos == true {
case $::operatingsystem {
#CentOS systems:
'CentOS': {
'CentOS', 'RedHat': {
#Add the official Icinga Yum repository: http://packages.icinga.org/epel/
yumrepo { 'icinga2_yum_repo':