Skip to content
Snippets Groups Projects
Commit e598588c authored by Michal Arbet's avatar Michal Arbet
Browse files

Add way to change logrotate scheduling

This patch adding way to change schedule
for logrotate.

Depends-On: https://review.opendev.org/c/openstack/kolla/+/813008
Change-Id: I033c51704bfb806f6515db26b8159fae12469ba5
parent 351bf158
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ common_services:
image: "{{ cron_image_full }}"
environment:
DUMMY_ENVIRONMENT: kolla_useless_env
KOLLA_LOGROTATE_SCHEDULE: "{{ cron_logrotate_schedule }}"
volumes: "{{ cron_default_volumes + cron_extra_volumes }}"
dimensions: "{{ cron_dimensions }}"
......@@ -97,6 +98,7 @@ fluentd_extra_volumes: "{{ default_extra_volumes }}"
cron_logrotate_rotation_interval: "weekly"
cron_logrotate_rotation_count: 6
cron_logrotate_schedule: "daily"
####################
# Fluentd
......
---
features:
- |
Adds a new variable to be used by the common role,
``cron_logrotate_schedule``. This allows to configure
how often the cron runs for logrotate.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment