Fix fernet cron path on Ubuntu/Debian

The correct path according to Ubuntu cron manpage [1] is
/var/spool/cron/crontabs/$USER

[1]: http://manpages.ubuntu.com/manpages/trusty/man8/cron.8.html

Closes-Bug: #1898765
Change-Id: Id5fc354e3e32cae2468cd2557a2967859e3b4e16
This commit is contained in:
Michal Nasiadka 2020-10-09 12:25:40 +02:00
parent 0617ca7a22
commit 07d42bff01
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{% 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' %} {% set cron_path = '/var/spool/cron/crontabs/root' if kolla_base_distro in ['ubuntu', 'debian'] else '/var/spool/cron/root' %}
{ {
"command": "{{ cron_cmd }}", "command": "{{ cron_cmd }}",
"config_files": [{ "config_files": [{

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixed invalid fernet cron file path on Debian/Ubuntu from
``/var/spool/cron/crontabs/root/fernet-cron`` to
``/var/spool/cron/crontabs/root``.
`LP#1898765 <https://bugs.launchpad.net/kolla-ansible/+bug/1898765>`__