|
@@ -41,6 +41,7 @@ class icinga2::params {
|
|
|
#Whether to manage the package repositories
|
|
|
$manage_repos = true
|
|
|
$server_db_type = 'pgsql'
|
|
|
+ $install_mail_utils_package = false
|
|
|
|
|
|
#Database paramters
|
|
|
$db_name = 'icinga2_data'
|
|
@@ -64,11 +65,13 @@ class icinga2::params {
|
|
|
#Icinga 2 server package
|
|
|
$icinga2_server_package = 'icinga2'
|
|
|
$icinga2_server_plugin_packages = ["nagios-plugins-nrpe", "nagios-plugins-all", "nagios-plugins-openmanage", "nagios-plugins-check-updates"]
|
|
|
+ $icinga2_server_mail_package = 'mailx'
|
|
|
}
|
|
|
'7': {
|
|
|
#Icinga 2 server package
|
|
|
$icinga2_server_package = 'icinga2'
|
|
|
$icinga2_server_plugin_packages = ["nagios-plugins-nrpe", "nagios-plugins-all", "nagios-plugins-openmanage", "nagios-plugins-check-updates"]
|
|
|
+ $icinga2_server_mail_package = 'mailx'
|
|
|
}
|
|
|
#Fail if we're on any other CentOS release:
|
|
|
default: { fail("${::operatingsystemmajrelease} is not a supported CentOS release!") }
|
|
@@ -82,6 +85,7 @@ class icinga2::params {
|
|
|
'12.04': {
|
|
|
$icinga2_server_package = 'icinga2'
|
|
|
$icinga2_server_plugin_packages = ["nagios-plugins", "nagios-plugins-basic", "nagios-plugins-standard", "nagios-snmp-plugins", "nagios-plugins-extra", "nagios-nrpe-plugin"]
|
|
|
+ $icinga2_server_mail_package = 'mailutils'
|
|
|
#Specify '--no-install-recommends' so we don't inadvertently get Nagios 3 installed; it comes as a recommended package with most of the plugin packages:
|
|
|
$server_plugin_package_install_options = '--no-install-recommends'
|
|
|
}
|
|
@@ -89,6 +93,7 @@ class icinga2::params {
|
|
|
'14.04': {
|
|
|
$icinga2_server_package = 'icinga2'
|
|
|
$icinga2_server_plugin_packages = [ "nagios-plugins", "nagios-plugins-basic", "nagios-plugins-common", "nagios-plugins-standard", "nagios-snmp-plugins", "nagios-plugins-extra", "nagios-plugins-contrib", "nagios-nrpe-plugin"]
|
|
|
+ $icinga2_server_mail_package = 'mailutils'
|
|
|
#Specify '--no-install-recommends' so we don't inadvertently get Nagios 3 installed; it comes as a recommended package with most of the plugin packages:
|
|
|
$server_plugin_package_install_options = '--no-install-recommends'
|
|
|
}
|