apache: new variables for logrotate + server-status
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
19da5ea1f7
commit
8c54fd8c16
|
@ -12,6 +12,8 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
* apache: new variables for logrotate + server-status
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -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_cert: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
apache_evolinux_default_ssl_key: /etc/ssl/private/ssl-cert-snakeoil.key
|
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: ""
|
||||||
apache_serverstatus_suffix_file: "/etc/evolinux/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"
|
general_alert_email: "root@localhost"
|
||||||
log2mail_alert_email: Null
|
log2mail_alert_email: Null
|
||||||
|
|
||||||
apache_serverstatus_host: 127.0.0.1
|
apache_logrotate_frequency: weekly
|
||||||
|
apache_logrotate_rotate: 52
|
||||||
|
|
|
@ -161,19 +161,19 @@
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
- name: "logrotate: rotate weekly"
|
- name: "logrotate: {{ apache_logrotate_frequency }}"
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/logrotate.d/apache2
|
dest: /etc/logrotate.d/apache2
|
||||||
regexp: "(daily|weekly|monthly)"
|
regexp: "(daily|weekly|monthly)"
|
||||||
replace: "weekly"
|
replace: "{{ apache_logrotate_frequency }}"
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
- name: "logrotate: keep 52 files"
|
- name: "logrotate: rotate {{ apache_logrotate_rotate }}"
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/logrotate.d/apache2
|
dest: /etc/logrotate.d/apache2
|
||||||
regexp: '^(\s+rotate) \d+$'
|
regexp: '^(\s+rotate) \d+$'
|
||||||
replace: '\1 52'
|
replace: '\1 {{ apache_logrotate_rotate }}'
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue