Browse Source

haproxy: rotate logs with date extension and immediate compression

tags/10.1.0^2
Jérémy Lecour 4 months ago
committed by Gitea
parent
commit
14d8eaac2f
2 changed files with 21 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +20
    -0
      haproxy/tasks/main.yml

+ 1
- 0
CHANGELOG.md 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


+ 20
- 0
haproxy/tasks/main.yml 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

Loading…
Cancel
Save