summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorQuique Llorente <ellorent@redhat.com>2018-11-26 10:44:10 +0100
committerQuique Llorente <ellorent@redhat.com>2018-11-26 10:44:47 +0100
commitac168d1e407c2ce7f8c33641be69e73c31a88e9c (patch)
tree9552ee91a8cc2d4899f3ac668e5fe6da1a302b19 /playbooks
parent613c232dcb6f4cd413b365030cf8346c74a2ef8b (diff)
downloadzuul-ac168d1e407c2ce7f8c33641be69e73c31a88e9c.tar.gz
Do a proper wait for zuul at quickstart
Replace plain timeout with retries over tenant status API Change-Id: I741f3cdc3a042af9775998c72ce6fb5d9c552f8b
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/quick-start/main.yaml16
1 files changed, 12 insertions, 4 deletions
diff --git a/playbooks/quick-start/main.yaml b/playbooks/quick-start/main.yaml
index 25368995c..de8177eb3 100644
--- a/playbooks/quick-start/main.yaml
+++ b/playbooks/quick-start/main.yaml
@@ -44,10 +44,18 @@
name: Example User
ssh_key: "{{ ssh_public_key }}"
http_password: secret
-# TODO(corvus): Fix this for real
-- name: Wait for Zuul to start
- pause:
- minutes: 1
+- name: Wait for zuul
+ uri:
+ url: http://localhost:9000/api/tenant/example-tenant/status
+ method: GET
+ return_content: true
+ status_code: 200
+ body_format: json
+ register: result
+ retries: 30
+ delay: 10
+ until: result.status == 200 and result.json["zuul_version"] is defined
+ changed_when: false
- name: Clone zuul-config
git:
repo: http://localhost:8080/zuul-config