From a510a5db9946a341c4485ef502eb9fef4fe42b2d Mon Sep 17 00:00:00 2001 From: varac Date: Sat, 19 Mar 2016 22:13:13 +0100 Subject: [bug] Install pnp4nagios after nagios Apt installs recommended packages by default. When pnp4nagios is installed before nagios is installed, it will install icinga or nagios as recommended package, and choses icinga for unknown reasons (alphabetical ?). So we ensure pnp4nagios* packages are installed after nagios. This resolves: https://leap.se/code/issues/7976 --- manifests/pnp4nagios.pp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/manifests/pnp4nagios.pp b/manifests/pnp4nagios.pp index bb695fb..bd7ab0c 100644 --- a/manifests/pnp4nagios.pp +++ b/manifests/pnp4nagios.pp @@ -2,17 +2,11 @@ class nagios::pnp4nagios { include nagios::defaults::pnp4nagios - package { 'pnp4nagios-web-config-nagios3': - ensure => installed - } - - package { 'pnp4nagios': + package { [ 'pnp4nagios', 'pnp4nagios-web-config-nagios3']: ensure => installed, - require => Package['pnp4nagios-web-config-nagios3'], + require => Package['nagios'] } - - # unfortunatly we can't use the nagios_host and nagios_service # definition to define templates, so we need to copy a file here. # see http://projects.reductivelabs.com/issues/1180 for this limitation -- cgit v1.2.3