{% set cron_cmd = 'cron -f' if kolla_base_distro in ['ubuntu', 'debian'] else 'crond -s -n' %}
{% set cron_path = '/var/spool/cron/crontabs/root' if kolla_base_distro in ['ubuntu', 'debian'] else '/var/spool/cron/root' %}
{
    "command": "/usr/local/bin/letsencrypt-lego-run.sh",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/letsencrypt-lego-run.sh",
            "dest": "/usr/local/bin/letsencrypt-lego-run.sh",
            "owner": "root",
            "perm": "0700"
        },
        {
            "source": "{{ container_config_directory }}/crontab",
            "dest": "{{ cron_path }}",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/id_rsa",
            "dest": "/var/lib/letsencrypt/.ssh/id_rsa",
            "owner": "letsencrypt",
            "perm": "0600"
        }
    ]
}

