diff options
author | Keith Burdis <keith@burdis.org> | 2013-02-07 14:06:53 +0000 |
---|---|---|
committer | Keith Burdis <keith@burdis.org> | 2013-02-07 14:06:53 +0000 |
commit | 7b9e60d41a09af40da75f55052c655bf69e6ae76 (patch) | |
tree | 74a06c52dc0dc9714e5775d18ab5aa9b64a41d9d /manifests/config.pp | |
parent | f626beddb77a83e95df048cb62647f49db8f0463 (diff) |
Re-inventory and re-load on every change.
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index d6675c3..c679170 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -15,7 +15,7 @@ class check_mk::config { owner => 'root', group => 'root', mode => '0644', - notify => Exec['check_mk-restart'], + notify => Exec['check_mk-refresh'], } concat::fragment { 'all_hosts-header': target => '/etc/check_mk/main.mk', @@ -27,8 +27,13 @@ class check_mk::config { content => "]\n", order => 03, } - Check_mk::Host <<| |>> { notify => Exec['check_mk-restart'] } - exec { 'check_mk-restart': + Check_mk::Host <<| |>> { notify => Exec['check_mk-refresh'] } + exec { 'check_mk-refresh': + command => '/usr/bin/check_mk -I', + refreshonly => true, + notify => Exec['check_mk-reload'], + } + exec { 'check_mk-reload': command => '/usr/bin/check_mk -O', refreshonly => true, } |