Skip to content

Commit

Permalink
fix #371, add binary path to icinga2 for Debian, SuSE and FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Sep 6, 2017
1 parent beea2cd commit d27c07a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@

'linux': {
$icinga2_bin = 'icinga2'
$bin_dir = '/sbin'
$conf_dir = '/etc/icinga2'
$log_dir = '/var/log/icinga2'
$run_dir = '/var/run/icinga2'
Expand All @@ -102,22 +101,25 @@
'redhat': {
$user = 'icinga'
$group = 'icinga'
$bin_dir = '/sbin'
$lib_dir = $::architecture ? {
'x86_64' => '/usr/lib64',
default => '/usr/lib',
}
} # RedHat

'debian': {
$user = 'nagios'
$group = 'nagios'
$lib_dir = '/usr/lib'
$user = 'nagios'
$group = 'nagios'
$bin_dir = '/usr/sbin'
$lib_dir = '/usr/lib'
} # Debian

'suse': {
$user = 'icinga'
$group = 'icinga'
$lib_dir = '/usr/lib'
$user = 'icinga'
$group = 'icinga'
$bin_dir = '/usr/sbin'
$lib_dir = '/usr/lib'
} # Suse

default: {
Expand All @@ -136,7 +138,6 @@
} # Linux

'windows': {
#$user = 'SYSTEM'
$user = undef
$group = undef
$icinga2_bin = 'icinga2.exe'
Expand Down Expand Up @@ -165,6 +166,7 @@
} # Windows

'FreeBSD': {
$bin_dir = '/usr/local/sbin/icinga2'
$conf_dir = '/usr/local/etc/icinga2'
$log_dir = '/var/log/icinga2'
$run_dir = '/var/run/icinga2'
Expand All @@ -174,6 +176,7 @@
$ca_dir = '/var/lib/icinga2/ca'
$user = 'icinga'
$group = 'icinga'
$icinga2_bin = 'icinga2'
$lib_dir = '/usr/local/lib/icinga2'
$ido_pgsql_package = undef
$ido_pgsql_schema_dir = '/usr/local/share/icinga2-ido-pgsql/schema'
Expand Down

0 comments on commit d27c07a

Please sign in to comment.