Skip to content

Commit 03ef6bb

Browse files
committed
pulp_auth_proxy: Wait for container to become accessible
Catch connectivity issues earlier.
1 parent e01f23e commit 03ef6bb

File tree

1 file changed

+8
-0
lines changed
  • etc/kayobe/ansible/roles/pulp_auth_proxy/tasks

1 file changed

+8
-0
lines changed

etc/kayobe/ansible/roles/pulp_auth_proxy/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@
4545
restart: "{{ pulp_proxy_conf is changed }}"
4646
volumes:
4747
- "{{ pulp_auth_proxy_conf_path }}/pulp_proxy.conf:/etc/nginx/conf.d/default.conf:ro"
48+
49+
- name: Wait for pulp_proxy container to become accessible
50+
ansible.builtin.uri:
51+
url: http://localhost/pulp/api/v3/status/
52+
register: uri_result
53+
until: uri_result is success
54+
retries: 30
55+
delay: 2

0 commit comments

Comments
 (0)