diff --git a/ansible/roles/keystone/templates/crontab.j2 b/ansible/roles/keystone/templates/crontab.j2 index af16e114fd..a2d2837432 100644 --- a/ansible/roles/keystone/templates/crontab.j2 +++ b/ansible/roles/keystone/templates/crontab.j2 @@ -1,3 +1,9 @@ +{# Cron uses a PATH of /usr/bin:/bin by default, which does not include the #} +{# virtualenv in source images. #} +{% if keystone_install_type == 'source' %} +PATH=/var/lib/kolla/venv/bin:/usr/bin:/bin +{% endif %} + {% for cron_job in cron_jobs %} {{ cron_job['min'] }} {{ cron_job['hour'] }} * * {{ cron_job['day'] }} /usr/bin/fernet-rotate.sh {% endfor %}