kolla/ansible/roles/mariadb/tasks/check.yml
SamYaple bf6b75da3f Make a final check to validate mysql works
This ensures mysql works through whatever the vip is

Change-Id: Iaeb17240b90ae2f0fef081b42d4ba140dcecd972
Closes-Bug: #1536633
2016-02-16 13:54:22 +00:00

9 lines
259 B
YAML

---
- name: Waiting for MariaDB service to be ready through VIP
command: "docker exec mariadb mysql -h {{ kolla_internal_address }} -u haproxy -e 'show databases;'"
register: result
until: result | success
changed_when: False
retries: 6
delay: 10