Merge "Correct fernet token sync race condition"

This commit is contained in:
Zuul 2019-02-26 02:05:02 +00:00 committed by Gerrit Code Review
commit a95c3537ec
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,11 @@ function autorotate {
{% if inventory_hostname != host %}
# Fernet sync job to "{{ host }}"
scp -o UserKnownHostsFile=/dev/null \
-o StrictHostKeyChecking=no \
$(ls -dtr {{ keystone_fernet_tokens_key_repository }}/* | sort -Vr) \
{{ keystone_system_user_name }}@{{ hostvars[host]['ansible_host'] }}:{{ keystone_fernet_tokens_key_repository }}/
rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
-avz \
--delete \