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:
Zhuo Zhen 2020-02-07 14:08:59 -06:00 committed by Radosław Piliszek
parent 4200089716
commit 29ccd38eaa
3 changed files with 11 additions and 2 deletions

View File

@ -88,3 +88,6 @@ fluentd_default_volumes:
kolla_toolbox_extra_volumes: "{{ default_extra_volumes }}"
cron_extra_volumes: "{{ default_extra_volumes }}"
fluentd_extra_volumes: "{{ default_extra_volumes }}"
cron_logrotate_rotation_interval: "weekly"
cron_logrotate_rotation_count: 6

View File

@ -1,6 +1,6 @@
weekly
{{ cron_logrotate_rotation_interval }}
rotate 6
rotate {{ cron_logrotate_rotation_count }}
copytruncate

View File

@ -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.