blob: 0783fe9d54930383cc9ca177f6b0411703851116 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# remove bigcouch leftovers from previous installations
class site_config::remove::bigcouch {
# Don't use check_mk logwatch to watch bigcouch logs anymore
# see https://leap.se/code/issues/7375 for more details
file { '/etc/check_mk/logwatch.d/bigcouch.cfg':
ensure => absent,
notify => [
Exec['remove_bigcouch_logwatch_spoolfiles'],
Exec['remove_bigcouch_logwatch_stateline']
]
}
# 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,
}
exec { 'remove_bigcouch_logwatch_stateline':
command => "sed -i '/bigcouch.log/d' /etc/check_mk/logwatch.state",
refreshonly => true,
}
cron { 'compact_all_shards':
ensure => absent
}
}
|