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,
}
#Install the Nagios plugins packages:
package {$icinga2_server_plugin_packages:
ensure => installed,
provider => $package_provider,
if $server_install_nagios_plugins == true {
#Install the Nagios plugins packages:
package {$icinga2_server_plugin_packages:
ensure => installed,
provider => $package_provider,
}
}
#Pick the right DB lib package name based on the database type the user selected: