aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/cron/templates/cron.json.j2
blob: 963a41e948facce3c82bda2932034850dbaf4fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% set cron_cmd = 'cron -f' if kolla_base_distro in ['ubuntu', 'debian'] else 'crond -s -n' %}
{
    "command": "{{ cron_cmd }}",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/logrotate.conf",
            "dest": "/etc/logrotate.conf",
            "owner": "root",
            "perm": "0600"
        }{% if kolla_copy_ca_into_containers | bool %},
        {
            "source": "{{ container_config_directory }}/ca-certificates",
            "dest": "/var/lib/kolla/share/ca-certificates",
            "owner": "root",
            "perm": "0644"
        }{% endif %}
    ]
}