fuel-library/deployment/puppet/anacron
Bartłomiej Piotrowski ce272320f4 Make log rotation more bulletproof
- use flock to ensure that only one instance of fuel-logrotate is running
- combine centos and ubuntu versions of fuel-logrotate to a single file
- remove unused versions of fuel-logrotate file
- enable delayed compression in system-wide logrotate.conf to avoid race
  condition between fuel-logrotate and regular logrotate
- enable delaycompress also on master node
- default minsize (30M) and maxsize (100M) in system-wide logrotate.conf
- use file_line for logrotate.conf updates
- use bash to execute fuel-logrotate
- fix path to cron's logrotate script in logrotate-debug

This commit changes default behavior of logrotate by enabling compress
and delaycompress. The result is that compression is enabled for all log
files managed by logrotate and rotated logs are compressed only on the next
rotation. It allows us to resolve rotation cycle that might happen when
both regular logrotate and fuel-logrotate were executed at the same
time, causing both to rotate the same file.

Closes-Bug: 1461400
Doc-Impact: ops guide
Change-Id: I94c497a8916fa6fac87ea2ddc51f6de56ab73f98
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
(cherry picked from commit dd0eacc460)
2015-06-15 08:07:21 +00:00
..
files Make log rotation more bulletproof 2015-06-15 08:07:21 +00:00
manifests Polish logrotate configuration 2015-05-07 08:59:58 +02:00
README Add ioniced anacron module for puppet. 2013-07-12 19:43:39 +03:00

README

= anacron

This module configures anacron to run jobs in the *idle* i/o class.
(source ttp://code.seas.harvard.edu/puppet/puppet/trees/master/modules/anacron)