Add common package parameter ssection.

This commit is contained in:
Nick Chappell 2014-07-05 12:31:48 -07:00
parent ddac1242b5
commit 9825a61032

View file

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