From 646e24f71387229fe82efc44a6bfc78444a78ed6 Mon Sep 17 00:00:00 2001 From: Jan Horstmann Date: Tue, 15 Oct 2024 10:37:40 +0200 Subject: [PATCH] Add logrotate config for redis Add missing logrotate config for redis. Closes-Bug: 2084523 Change-Id: Ic631a9c87f7be30f7694706928d9ede62015ed6d Signed-off-by: Jan Horstmann --- ansible/roles/common/tasks/config.yml | 1 + ansible/roles/common/templates/cron-logrotate-redis.conf.j2 | 3 +++ releasenotes/notes/bug-2084523-a02f38eecf6c957a.yaml | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 ansible/roles/common/templates/cron-logrotate-redis.conf.j2 create mode 100644 releasenotes/notes/bug-2084523-a02f38eecf6c957a.yaml diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index 06c2b8556e..50367bc76a 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -251,6 +251,7 @@ - { name: "prometheus", enabled: "{{ enable_prometheus | bool }}" } - { name: "proxysql", enabled: "{{ enable_proxysql | bool }}" } - { name: "rabbitmq", enabled: "{{ enable_rabbitmq | bool }}" } + - { name: "redis", enabled: "{{ enable_redis | bool }}" } - { name: "skyline", enabled: "{{ enable_skyline | bool }}" } - { name: "swift", enabled: "{{ enable_swift | bool }}" } - { name: "tacker", enabled: "{{ enable_tacker | bool }}" } diff --git a/ansible/roles/common/templates/cron-logrotate-redis.conf.j2 b/ansible/roles/common/templates/cron-logrotate-redis.conf.j2 new file mode 100644 index 0000000000..9fb4c5a500 --- /dev/null +++ b/ansible/roles/common/templates/cron-logrotate-redis.conf.j2 @@ -0,0 +1,3 @@ +"/var/log/kolla/redis/*.log" +{ +} diff --git a/releasenotes/notes/bug-2084523-a02f38eecf6c957a.yaml b/releasenotes/notes/bug-2084523-a02f38eecf6c957a.yaml new file mode 100644 index 0000000000..83a6d9df4f --- /dev/null +++ b/releasenotes/notes/bug-2084523-a02f38eecf6c957a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Add missing logrotate config for redis. + `LP#2084523 `__