summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-03-19 22:13:13 +0100
committervarac <varacanero@zeromail.org>2016-03-19 22:13:13 +0100
commita510a5db9946a341c4485ef502eb9fef4fe42b2d (patch)
treeb858d685cd7b19eac9f8704a43c2fd2758e870d6
parentb06f002c52b5398e564dd0cb2764145a376ecdbc (diff)
[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
-rw-r--r--manifests/pnp4nagios.pp10
1 files 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