summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging
diff options
context:
space:
mode:
authorewolinetz <ewolinet@redhat.com>2017-01-27 15:34:01 -0600
committerewolinetz <ewolinet@redhat.com>2017-01-27 15:34:01 -0600
commitd9bebc99fe94c2a981e6b96f36d0292d7fa80879 (patch)
tree2d9dc0ed4542eb8a96dbda3cf8a7d865aa985890 /roles/openshift_logging
parent9ed378a12afae4f30550ca91b21392077d094f53 (diff)
downloadopenshift-d9bebc99fe94c2a981e6b96f36d0292d7fa80879.tar.gz
openshift-d9bebc99fe94c2a981e6b96f36d0292d7fa80879.tar.bz2
openshift-d9bebc99fe94c2a981e6b96f36d0292d7fa80879.tar.xz
openshift-d9bebc99fe94c2a981e6b96f36d0292d7fa80879.zip
Updating to correctly pull handler for openshift_logging. Adding logic to openshift_hosted_logging too
Diffstat (limited to 'roles/openshift_logging')
-rw-r--r--roles/openshift_logging/handlers/main.yml5
-rw-r--r--roles/openshift_logging/meta/main.yaml1
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_logging/handlers/main.yml b/roles/openshift_logging/handlers/main.yml
new file mode 100644
index 000000000..ad79e62ae
--- /dev/null
+++ b/roles/openshift_logging/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+- name: restart master
+ 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
diff --git a/roles/openshift_logging/meta/main.yaml b/roles/openshift_logging/meta/main.yaml
index 9c480f73a..bc45dcdab 100644
--- a/roles/openshift_logging/meta/main.yaml
+++ b/roles/openshift_logging/meta/main.yaml
@@ -14,3 +14,4 @@ galaxy_info:
dependencies:
- role: lib_openshift
- role: openshift_facts
+- role: openshift_master_facts