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:
parent
507fc377ff
commit
4d5c93d32a
1 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue