ansible-logrotate icon indicating copy to clipboard operation
ansible-logrotate copied to clipboard

Global Options

Open rwese opened this issue 6 years ago • 2 comments

Create logrotate.d files and set global options.

rwese avatar Apr 16 '18 07:04 rwese

Hey @rwese, thanks for the PR!

Defaults/globals for logrotate should actually be placed in /etc/logrotate.conf which then includes all of the files in /etc/logrotate.d, I don't want to mix those use cases on a user and introduce a new concept of global options.

Here's some defaults that are being set with logrotate on a fresh install of xenial for instance:

vagrant@ubuntu-xenial:~$ cat /etc/logrotate.conf | grep include -B 10
# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

nickhammond avatar Apr 18 '18 15:04 nickhammond

True, I was hesitant to override the Global Configuration.

When I get to it I will update it.

rwese avatar Apr 24 '18 18:04 rwese