common: support custom cron-logrotate-global.conf

This extends the functionality of being able to add per-node custom
configuration to the cron-logrotate config, similar to what we already
have in place for other configuration files.

Change-Id: Ia94cc960abff2850e64d60ac997e8a2e249e4ac4
This commit is contained in:
Christian Berendt
2024-07-22 19:15:21 +02:00
committed by Dr. Jens Harbott
parent db19425958
commit e00bb43bae
2 changed files with 9 additions and 1 deletions

View File

@@ -204,12 +204,16 @@
- { name: "watcher", enabled: "{{ enable_watcher | bool }}" }
- { name: "zun", enabled: "{{ enable_zun | bool }}" }
template:
src: "cron-logrotate-global.conf.j2"
src: "{{ item }}"
dest: "{{ node_config_directory }}/cron/logrotate.conf"
mode: "0660"
become: true
when:
- common_services.cron | service_enabled_and_mapped_to_host
with_first_found:
- "{{ node_custom_config }}/cron/{{ inventory_hostname }}/cron-logrotate-global.conf"
- "{{ node_custom_config }}/cron/cron-logrotate-global.conf"
- "cron-logrotate-global.conf.j2"
- name: Ensure RabbitMQ Erlang cookie exists
become: true

View File

@@ -0,0 +1,4 @@
---
features:
- |
It is now possible to use a custom ``cron-logrotate-global.conf`` file.