Fix missing keystone user in cron job.

When use_syslog = False, the keystone-token-flush cronjob omits the
keystone username in the cron tab file, which causes cron to skip
the entry and report errors into the cron job. This change fixes
the problem.

Change-Id: I2e96eba9e55d9a7e3b9ade2090f88a74467ba334
Closes-Bug: 1578914
This commit is contained in:
Billy Olsen 2016-05-05 22:00:51 -07:00
parent 8d535b56f6
commit ce7949805f

View File

@ -3,7 +3,7 @@
{% if use_syslog -%} {% if use_syslog -%}
0 * * * * keystone /usr/bin/keystone-manage token_flush 2>&1 | logger -t keystone-token-flush 0 * * * * keystone /usr/bin/keystone-manage token_flush 2>&1 | logger -t keystone-token-flush
{% else -%} {% else -%}
0 * * * * /usr/bin/keystone-manage token_flush >> /var/log/keystone/keystone-token-flush.log 2>&1 0 * * * * keystone /usr/bin/keystone-manage token_flush >> /var/log/keystone/keystone-token-flush.log 2>&1
{% endif -%} {% endif -%}
{% else -%} {% else -%}
# Current unit is not the leader unit. Token flush will be managed by the leader unit. # Current unit is not the leader unit. Token flush will be managed by the leader unit.