Skip to content
Snippets Groups Projects
Commit 35a21b07 authored by Kevin Tibi's avatar Kevin Tibi
Browse files

Fernet cron path

Fix the path of fernet cron for centos images

Change-Id: Iedf3a8630bc3c25fd05f580980d499023bf974fa
parent 83de8696
No related branches found
No related tags found
No related merge requests found
{% set cron_cmd = 'cron -f' if kolla_base_distro in ['ubuntu', 'debian'] else 'crond -s -n' %} {% set cron_cmd = 'cron -f' if kolla_base_distro in ['ubuntu', 'debian'] else 'crond -s -n' %}
{% set cron_path = '/var/spool/cron/crontabs/root/fernet-cron' if kolla_base_distro in ['ubuntu', 'debian'] else '/var/spool/cron/root' %}
{ {
"command": "{{ cron_cmd }}", "command": "{{ cron_cmd }}",
"config_files": [{ "config_files": [{
...@@ -9,7 +10,7 @@ ...@@ -9,7 +10,7 @@
}, },
{ {
"source": "{{ container_config_directory }}/crontab", "source": "{{ container_config_directory }}/crontab",
"dest": "/var/spool/cron/crontabs/root/fernet-cron", "dest": "{{ cron_path }}",
"owner": "root", "owner": "root",
"perm": "0600" "perm": "0600"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment