Remove the old logrotate configuration

This is required for the 0.8.0 > 0.8.1 upgrade to
avoid running logrotate in parallel.

Change-Id: I815212c6cc5b7e3c7e048581e95c287530ddd886
This commit is contained in:
Swann Croiset 2016-03-31 11:07:11 +02:00
parent d35ae5171a
commit 451ab33a69
1 changed files with 6 additions and 0 deletions

View File

@ -149,6 +149,12 @@ class heka (
require => [User[$heka_user], Package['heka']],
}
# To avoid concurrent run of logrotate, the old logrotate configuration set
# by 0.8.0 must be removed
file { '/etc/logrotate.d/lma_collector':
ensure => absent,
}
$logrotate_conf = "/etc/logrotate_${service_name}.conf"
file { $logrotate_conf:
ensure => present,