From 4645a17474824775cc55e5a1a5fd5b8c3b9ebc13 Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 9 May 2016 11:36:34 +0200 Subject: [bug] create and reload nagios config if needed We have the `inventory_only_on_changes` parameter that can be set to `false` to run and inventory and create and reload nagios config on every puppetrun. This fixes the bug that `Exec[check_mk-reload]` would only run when `/etc/nagios3/conf.d/check_mk/check_mk_objects.cfg` doesn't exist (meaning it would run once and not after this, until the file gets removed). multinode|citest|unstable.bitmask.net] - Resolves: https://leap.se/code/issues/6873 --- manifests/config.pp | 1 - 1 file changed, 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index 522be19..fba6836 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -100,7 +100,6 @@ class check_mk::config ( exec { 'check_mk-reload': command => "/bin/su -l -c '${bin_dir}/check_mk -O' ${site}", refreshonly => $inventory_only_on_changes, - creates => '/etc/nagios3/conf.d/check_mk/check_mk_objects.cfg' } # re-read inventory at least daily exec { 'check_mk-refresh-inventory-daily': -- cgit v1.2.3