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:

committed by
Dr. Jens Harbott

parent
db19425958
commit
e00bb43bae
@@ -204,12 +204,16 @@
|
|||||||
- { name: "watcher", enabled: "{{ enable_watcher | bool }}" }
|
- { name: "watcher", enabled: "{{ enable_watcher | bool }}" }
|
||||||
- { name: "zun", enabled: "{{ enable_zun | bool }}" }
|
- { name: "zun", enabled: "{{ enable_zun | bool }}" }
|
||||||
template:
|
template:
|
||||||
src: "cron-logrotate-global.conf.j2"
|
src: "{{ item }}"
|
||||||
dest: "{{ node_config_directory }}/cron/logrotate.conf"
|
dest: "{{ node_config_directory }}/cron/logrotate.conf"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- common_services.cron | service_enabled_and_mapped_to_host
|
- 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
|
- name: Ensure RabbitMQ Erlang cookie exists
|
||||||
become: true
|
become: true
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
It is now possible to use a custom ``cron-logrotate-global.conf`` file.
|
Reference in New Issue
Block a user