diff options
author | varac <varacanero@zeromail.org> | 2016-05-09 11:36:34 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-05-09 11:36:34 +0200 |
commit | 4645a17474824775cc55e5a1a5fd5b8c3b9ebc13 (patch) | |
tree | 1a09a2775045f854000f6cba5ee4efb2c3a802b2 | |
parent | 385402972a3f4566393faaf28bf09cbcc5191ab0 (diff) |
[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
-rw-r--r-- | manifests/config.pp | 1 |
1 files changed, 0 insertions, 1 deletions
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': |