apache: new variables for logrotate + server-status
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2021-01-05 17:47:56 +01:00 committed by Jérémy Lecour
parent 19da5ea1f7
commit 8c54fd8c16
3 changed files with 9 additions and 5 deletions

View File

@ -12,6 +12,8 @@ The **patch** part changes incrementally at each release.
### Added
* apache: new variables for logrotate + server-status
### Changed
### Fixed

View File

@ -11,6 +11,7 @@ apache_evolinux_default_enabled: True
apache_evolinux_default_ssl_cert: /etc/ssl/certs/ssl-cert-snakeoil.pem
apache_evolinux_default_ssl_key: /etc/ssl/private/ssl-cert-snakeoil.key
apache_serverstatus_host: 127.0.0.1
apache_serverstatus_suffix: ""
apache_serverstatus_suffix_file: "/etc/evolinux/apache_serverstatus_suffix"
@ -20,4 +21,5 @@ apache_munin_include: True
general_alert_email: "root@localhost"
log2mail_alert_email: Null
apache_serverstatus_host: 127.0.0.1
apache_logrotate_frequency: weekly
apache_logrotate_rotate: 52

View File

@ -161,19 +161,19 @@
tags:
- apache
- name: "logrotate: rotate weekly"
- name: "logrotate: {{ apache_logrotate_frequency }}"
replace:
dest: /etc/logrotate.d/apache2
regexp: "(daily|weekly|monthly)"
replace: "weekly"
replace: "{{ apache_logrotate_frequency }}"
tags:
- apache
- name: "logrotate: keep 52 files"
- name: "logrotate: rotate {{ apache_logrotate_rotate }}"
replace:
dest: /etc/logrotate.d/apache2
regexp: '^(\s+rotate) \d+$'
replace: '\1 52'
replace: '\1 {{ apache_logrotate_rotate }}'
tags:
- apache