32a4cadac9
Add cron image and playbook for logrotate. The "common" Ansible playbook includes configuration files for logrotate. At this point the operator cannot customize/override the logrotate configuration. Closes-Bug: #1553244 Change-Id: Ic9fdda9a273c9ccd90502f0acc7614d2c7157dca
23 lines
850 B
Django/Jinja
23 lines
850 B
Django/Jinja
{% set cron_cmd = 'cron -f' if kolla_base_distro in ['ubuntu', 'debian'] else 'crond -s -n' %}
|
|
{% set services = ["ansible", "cinder", "glance", "haproxy", "heat", "keepalived", "keystone", "magnum", "manila", "mariadb", "mistral", "murano", "neutron", "nova", "rabbitmq", "swift"] %}
|
|
{
|
|
"command": "{{ cron_cmd }}",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/logrotate/global.conf",
|
|
"dest": "/etc/logrotate.conf",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
},
|
|
{% for service in services %}
|
|
{
|
|
"source": "{{ container_config_directory }}/logrotate/{{ service }}.conf",
|
|
"dest": "/etc/logrotate.d/{{ service }}.conf",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
|
|
]
|
|
}
|