89392f4f6a
Partially-Implements: blueprint ansible-gnocchi Change-Id: I8dd0460bd21ac0a233fab0142ec7b6079459bdc2
23 lines
869 B
Django/Jinja
23 lines
869 B
Django/Jinja
{% set cron_cmd = 'cron -f' if kolla_base_distro in ['ubuntu', 'debian'] else 'crond -s -n' %}
|
|
{% set services = ["ansible", "aodh", "cinder", "glance", "gnocchi", "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 %}
|
|
|
|
]
|
|
}
|