Add common package parameter ssection.
This commit is contained in:
parent
ddac1242b5
commit
9825a61032
1 changed files with 19 additions and 0 deletions
|
@ -18,6 +18,25 @@ class icinga2::params {
|
|||
##############################
|
||||
# Icinga 2 server parameters
|
||||
##############################
|
||||
|
||||
##################
|
||||
# Icinga 2 common package parameters
|
||||
case $operatingsystem {
|
||||
#Red Hat/CentOS systems:
|
||||
'RedHat', 'CentOS': {
|
||||
#Pick the right package provider:
|
||||
$package_provider = 'yum'
|
||||
}
|
||||
|
||||
#Debian/Ubuntu systems:
|
||||
/^(Debian|Ubuntu)$/: {
|
||||
#Pick the right package provider:
|
||||
$package_provider = 'apt'
|
||||
}
|
||||
|
||||
#Fail if we're on any other OS:
|
||||
default: { fail("${operatingsystem} is not supported!") }
|
||||
}
|
||||
|
||||
#Whether to manage the package repositories
|
||||
$manage_repos = 'true'
|
||||
|
|
Loading…
Reference in a new issue