haproxy: rotate logs with date extension and immediate compression
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2020-06-22 19:02:29 +02:00 committed by Jérémy Lecour
parent 977c28c720
commit 9bdd5ad9e7
2 changed files with 21 additions and 0 deletions

View File

@ -35,6 +35,7 @@ The **patch** part changes incrementally at each release.
* haproxy: chroot and socket path are configurable
* haproxy: adapt backports installed package list to distibution
* haproxy: split stats variables
* haproxy: rotate logs with date extension and immediate compression
* nginx: read server-status values before changing the config
* redis: create sudoers file if missing
* redis: new syntax for match filter

View File

@ -101,4 +101,24 @@
- haproxy
- config
- name: Rotate logs with dateext
lineinfile:
dest: /etc/logrotate.d/haproxy
line: ' dateext'
regexp: '^\s*#*\s*(no)?dateext'
insertbefore: '}'
tags:
- haproxy
- config
- name: Rotate logs with nodelaycompress
lineinfile:
dest: /etc/logrotate.d/haproxy
line: ' nodelaycompress'
regexp: '^\s*#*\s*(no)?delaycompress'
insertbefore: '}'
tags:
- haproxy
- config
- include: munin.yml