Configurable logrotate rotation interval and count
The logrotate rotation interval and count are not configurable. Currently, the configuration is a "default" that keeps 6 weeks of logs. Change-Id: I4f55ee2a98f7861cb8de2724f5edc32da6d2f9ee
This commit is contained in:
parent
4200089716
commit
29ccd38eaa
@ -88,3 +88,6 @@ fluentd_default_volumes:
|
|||||||
kolla_toolbox_extra_volumes: "{{ default_extra_volumes }}"
|
kolla_toolbox_extra_volumes: "{{ default_extra_volumes }}"
|
||||||
cron_extra_volumes: "{{ default_extra_volumes }}"
|
cron_extra_volumes: "{{ default_extra_volumes }}"
|
||||||
fluentd_extra_volumes: "{{ default_extra_volumes }}"
|
fluentd_extra_volumes: "{{ default_extra_volumes }}"
|
||||||
|
|
||||||
|
cron_logrotate_rotation_interval: "weekly"
|
||||||
|
cron_logrotate_rotation_count: 6
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
weekly
|
{{ cron_logrotate_rotation_interval }}
|
||||||
|
|
||||||
rotate 6
|
rotate {{ cron_logrotate_rotation_count }}
|
||||||
|
|
||||||
copytruncate
|
copytruncate
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- >
|
||||||
|
Adds configuration variables ``cron_logrotate_rotation_interval`` and
|
||||||
|
``cron_logrotate_rotation_count`` to set the logrotate rotation interval
|
||||||
|
and count.
|
Loading…
x
Reference in New Issue
Block a user