diff options
| author | varac <varacanero@zeromail.org> | 2016-02-01 20:51:04 +0100 | 
|---|---|---|
| committer | varac <varacanero@zeromail.org> | 2016-02-02 17:09:53 +0100 | 
| commit | fa256e6b41097d8d59d2e730cc8afd3b29bdecf2 (patch) | |
| tree | dbbb3510aeefdfd046f6653e17d0bc2017335c5d | |
| parent | 572b02679a030a2df154e86dd9c4a18e2af988d2 (diff) | |
[bug] Fix bigcouch spoolfile removal
- Resolves: #7641
| -rw-r--r-- | puppet/modules/site_config/manifests/remove/bigcouch.pp | 1 | ||||
| -rw-r--r-- | puppet/modules/site_config/manifests/remove/monitoring.pp | 12 | 
2 files changed, 4 insertions, 9 deletions
| diff --git a/puppet/modules/site_config/manifests/remove/bigcouch.pp b/puppet/modules/site_config/manifests/remove/bigcouch.pp index f8e0ebe2..26ba8d09 100644 --- a/puppet/modules/site_config/manifests/remove/bigcouch.pp +++ b/puppet/modules/site_config/manifests/remove/bigcouch.pp @@ -6,7 +6,6 @@ class site_config::remove::bigcouch {    file { '/etc/check_mk/logwatch.d/bigcouch.cfg':      ensure => absent,      notify => [ -      Exec['remove_bigcouch_logwatch_spoolfiles'],        Exec['remove_bigcouch_logwatch_stateline']      ]    } diff --git a/puppet/modules/site_config/manifests/remove/monitoring.pp b/puppet/modules/site_config/manifests/remove/monitoring.pp index ab9f7a8f..18e2949b 100644 --- a/puppet/modules/site_config/manifests/remove/monitoring.pp +++ b/puppet/modules/site_config/manifests/remove/monitoring.pp @@ -1,17 +1,13 @@  # remove leftovers on monitoring nodes  class site_config::remove::monitoring { +  # Remove check_mk loggwatch spoolfiles for +  # tapicero and bigcouch    tidy { -    'checkmk_logwatch_spool': +    'remove_logwatch_spoolfiles':        path    => '/var/lib/check_mk/logwatch',        recurse => true, -      matches => '*tapicero.log' -  } - -  # remove leftover bigcouch logwatch spool files -  exec { 'remove_bigcouch_logwatch_spoolfiles': -    command     => 'find /var/lib/check_mk/logwatch -name \'\\opt\\bigcouch\\var\\log\\bigcouch.log\' -exec rm {} \;', -    refreshonly => true, +      matches => [ '*tapicero.log', '*bigcouch.log'];    }  } | 
