Wrapped the server plugin install in an if statement so that installing the plugins packages depends on the parameter being set to true.

This commit is contained in:
Nick Chappell 2014-07-20 17:05:11 -07:00
parent 507fc377ff
commit 4d5c93d32a

View file

@ -75,10 +75,12 @@ class icinga2::server::install::packages inherits icinga2::server {
provider => $package_provider, provider => $package_provider,
} }
#Install the Nagios plugins packages: if $server_install_nagios_plugins == true {
package {$icinga2_server_plugin_packages: #Install the Nagios plugins packages:
ensure => installed, package {$icinga2_server_plugin_packages:
provider => $package_provider, ensure => installed,
provider => $package_provider,
}
} }
#Pick the right DB lib package name based on the database type the user selected: #Pick the right DB lib package name based on the database type the user selected: