Fernet cron path

Fix the path of fernet cron for centos images

Change-Id: Iedf3a8630bc3c25fd05f580980d499023bf974fa
(cherry picked from commit 35a21b0711)
This commit is contained in:
Kevin Tibi 2018-10-22 10:47:22 +02:00 committed by Mark Goddard
parent 70c1a23e76
commit 8d2af032ad
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{% 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 }}",
"config_files": [{
@ -9,7 +10,7 @@
},
{
"source": "{{ container_config_directory }}/crontab",
"dest": "/var/spool/cron/crontabs/root/fernet-cron",
"dest": "{{ cron_path }}",
"owner": "root",
"perm": "0600"
},