kolla-ansible/ansible/roles/keystone/templates/fernet-healthcheck.sh.j2
Michal Arbet 90fd9152a4 Use Docker healthchecks for keystone-fernet container
This change enables the use of Docker healthchecks for
keystone-fernet container. It checks if "key 0" has
right permissions, and if rsync is able to distribute
keys to other keystones.

Implements: blueprint container-health-check
Change-Id: I17bea723d4109e869cd05d211f6f8e4653f46e17
2021-08-17 15:07:01 +02:00

7 lines
129 B
Django/Jinja

#!/bin/bash
set -o errexit
set -o pipefail
(/usr/bin/fernet-node-sync.sh --check && /usr/bin/fernet-push.sh --check) || exit 1