zuul/doc/source/admin/examples/playbooks/wait-to-start.yaml

25 lines
613 B
YAML

# Zuul needs to be able to connect to the remote systems in order to
# start.
- hosts: localhost
gather_facts: false
tasks:
- name: Wait for Gerrit to start
wait_for:
host: gerrit
port: 29418
- name: Wait for mysql to start
wait_for:
host: mysql
port: 3306
- name: Wait for zuul user to be created
uri:
url: http://gerrit:8080/a/accounts/zuul/sshkeys
method: GET
user: admin
password: secret
register: result
until: result.status == 200 and result.redirected == false
delay: 1
retries: 120