summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-09-12 13:17:32 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-09-28 11:57:54 -0300
commitcbe003803a4a7509ee7aa1fac776cc618818bb4e (patch)
tree6cd528d71671a22ceab5647a79bac365fee6e572 /playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml
parent0cb963375165f03807818a8e8fa99a52a8244c04 (diff)
downloadopenshift-cbe003803a4a7509ee7aa1fac776cc618818bb4e.tar.gz
openshift-cbe003803a4a7509ee7aa1fac776cc618818bb4e.tar.bz2
openshift-cbe003803a4a7509ee7aa1fac776cc618818bb4e.tar.xz
openshift-cbe003803a4a7509ee7aa1fac776cc618818bb4e.zip
Attempt to tease apart pre upgrade for masters/nodes.
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml b/playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml
new file mode 100644
index 000000000..06eb5f936
--- /dev/null
+++ b/playbooks/common/openshift-cluster/upgrades/pre/verify_control_plane_running.yml
@@ -0,0 +1,31 @@
+---
+- name: Verify master processes
+ hosts: oo_masters_to_config
+ roles:
+ - openshift_facts
+ tasks:
+ - openshift_facts:
+ role: master
+ local_facts:
+ ha: "{{ groups.oo_masters_to_config | length > 1 }}"
+
+ - name: Ensure Master is running
+ service:
+ name: "{{ openshift.common.service_type }}-master"
+ state: started
+ enabled: yes
+ when: openshift.master.ha is defined and not openshift.master.ha | bool and openshift.common.is_containerized | bool
+
+ - name: Ensure HA Master is running
+ service:
+ name: "{{ openshift.common.service_type }}-master-api"
+ state: started
+ enabled: yes
+ when: openshift.master.ha is defined and openshift.master.ha | bool and openshift.common.is_containerized | bool
+
+ - name: Ensure HA Master is running
+ service:
+ name: "{{ openshift.common.service_type }}-master-controllers"
+ state: started
+ enabled: yes
+ when: openshift.master.ha is defined and openshift.master.ha | bool and openshift.common.is_containerized | bool