summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging
diff options
context:
space:
mode:
authorewolinetz <ewolinet@redhat.com>2017-02-17 14:09:08 -0600
committerewolinetz <ewolinet@redhat.com>2017-02-17 14:09:08 -0600
commited579ea3ef1611c6ff8ec6e920fcf6b6284df1e5 (patch)
tree9452cbf53a363e16ecbf023a5bdf15d3979c7314 /roles/openshift_logging
parent31eabf5d41c706270a347fad676cb74288aa5813 (diff)
downloadopenshift-ed579ea3ef1611c6ff8ec6e920fcf6b6284df1e5.tar.gz
openshift-ed579ea3ef1611c6ff8ec6e920fcf6b6284df1e5.tar.bz2
openshift-ed579ea3ef1611c6ff8ec6e920fcf6b6284df1e5.tar.xz
openshift-ed579ea3ef1611c6ff8ec6e920fcf6b6284df1e5.zip
Adding missing handler to resolve error that it was not found
Diffstat (limited to 'roles/openshift_logging')
-rw-r--r--roles/openshift_logging/handlers/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/openshift_logging/handlers/main.yml b/roles/openshift_logging/handlers/main.yml
index ad79e62ae..ffb812271 100644
--- a/roles/openshift_logging/handlers/main.yml
+++ b/roles/openshift_logging/handlers/main.yml
@@ -3,3 +3,24 @@
systemd: name={{ openshift.common.service_type }}-master state=restarted
when: (openshift.master.ha is not defined or not openshift.master.ha | bool) and (not (master_service_status_changed | default(false) | bool))
notify: Verify API Server
+
+- name: Verify API Server
+ # Using curl here since the uri module requires python-httplib2 and
+ # wait_for port doesn't provide health information.
+ command: >
+ curl --silent --tlsv1.2
+ {% if openshift.common.version_gte_3_2_or_1_2 | bool %}
+ --cacert {{ openshift.common.config_base }}/master/ca-bundle.crt
+ {% else %}
+ --cacert {{ openshift.common.config_base }}/master/ca.crt
+ {% endif %}
+ {{ openshift.master.api_url }}/healthz/ready
+ args:
+ # Disables the following warning:
+ # Consider using get_url or uri module rather than running curl
+ warn: no
+ register: api_available_output
+ until: api_available_output.stdout == 'ok'
+ retries: 120
+ delay: 1
+ changed_when: false