diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-12-21 22:49:28 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-12-21 23:23:43 -0500 |
commit | 28b254886bf17251e973bfdad4dd4c89e26187fc (patch) | |
tree | 9ec6e102d1f3a0e1dcae96c44303ed7316927bbc /playbooks/openshift-hosted/private/openshift_hosted_registry_storage.yml | |
parent | 7d2dee36a6b49d335693c0e8554b378f62c7431e (diff) | |
download | openshift-28b254886bf17251e973bfdad4dd4c89e26187fc.tar.gz openshift-28b254886bf17251e973bfdad4dd4c89e26187fc.tar.bz2 openshift-28b254886bf17251e973bfdad4dd4c89e26187fc.tar.xz openshift-28b254886bf17251e973bfdad4dd4c89e26187fc.zip |
Move wait_for_pods to it's own play openshift_hosted
Currently, both registry and router pods need to
be polled for successful deployment.
Somtimes this can take up to a minute.
This commit attempts to deploy both pods
before polling either. This should reduce
the average wait time for polling pods by 50%
as time spent polling the first will also allow
the second pod to continue it's own deployment.
Diffstat (limited to 'playbooks/openshift-hosted/private/openshift_hosted_registry_storage.yml')
-rw-r--r-- | playbooks/openshift-hosted/private/openshift_hosted_registry_storage.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/openshift-hosted/private/openshift_hosted_registry_storage.yml b/playbooks/openshift-hosted/private/openshift_hosted_registry_storage.yml new file mode 100644 index 000000000..9a407b69e --- /dev/null +++ b/playbooks/openshift-hosted/private/openshift_hosted_registry_storage.yml @@ -0,0 +1,13 @@ +--- +# This playbook waits for registry and router pods after both have been +# created. It is intended to allow the tasks of deploying both to complete +# before polling to save time. +- name: Poll for hosted pod deployments + hosts: oo_first_master + tasks: + - include_role: + name: openshift_hosted + tasks_from: registry_storage.yml + when: + - openshift_hosted_manage_registry | default(True) | bool + - openshift_hosted_registry_registryurl is defined |