From 35a21b0711bf131bfa9307f6c6b343bf21cc965f Mon Sep 17 00:00:00 2001
From: Kevin Tibi <kevintibi@hotmail.com>
Date: Mon, 22 Oct 2018 10:47:22 +0200
Subject: [PATCH] Fernet cron path

Fix the path of fernet cron for centos images

Change-Id: Iedf3a8630bc3c25fd05f580980d499023bf974fa
---
 ansible/roles/keystone/templates/keystone-fernet.json.j2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ansible/roles/keystone/templates/keystone-fernet.json.j2 b/ansible/roles/keystone/templates/keystone-fernet.json.j2
index 666e785c4f..b0695c25e9 100644
--- a/ansible/roles/keystone/templates/keystone-fernet.json.j2
+++ b/ansible/roles/keystone/templates/keystone-fernet.json.j2
@@ -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"
         },
-- 
GitLab