summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-master
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2017-01-06 15:14:19 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2017-01-18 10:40:21 -0400
commit362a4eafc1ae9122f98adb5b96ad86ca39529c96 (patch)
tree4c47d115cc3fa0ec9ceb9935cc6270ec9c9d6cec /playbooks/byo/openshift-master
parent1f7ff637a1e5413e2a8d8fe19ffb28b373243e6f (diff)
downloadopenshift-362a4eafc1ae9122f98adb5b96ad86ca39529c96.tar.gz
openshift-362a4eafc1ae9122f98adb5b96ad86ca39529c96.tar.bz2
openshift-362a4eafc1ae9122f98adb5b96ad86ca39529c96.tar.xz
openshift-362a4eafc1ae9122f98adb5b96ad86ca39529c96.zip
Perform master upgrades in a single play serially.
Diffstat (limited to 'playbooks/byo/openshift-master')
-rw-r--r--playbooks/byo/openshift-master/restart.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/playbooks/byo/openshift-master/restart.yml b/playbooks/byo/openshift-master/restart.yml
index b6cebe829..b60807a71 100644
--- a/playbooks/byo/openshift-master/restart.yml
+++ b/playbooks/byo/openshift-master/restart.yml
@@ -17,4 +17,14 @@
- include: ../../common/openshift-cluster/evaluate_groups.yml
- include: ../../common/openshift-master/validate_restart.yml
-- include: ../../common/openshift-master/restart.yml
+
+- name: Restart masters
+ hosts: oo_masters_to_config
+ vars:
+ openshift_master_ha: "{{ groups.oo_masters_to_config | length > 1 }}"
+ serial: 1
+ tasks:
+ - include: restart_hosts.yml
+ when: openshift.common.rolling_restart_mode == 'system'
+ - include: restart_services.yml
+ when: openshift.common.rolling_restart_mode == 'services'