summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-master
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-01-19 09:21:29 -0500
committerGitHub <noreply@github.com>2017-01-19 09:21:29 -0500
commitb3f0b74e6fd07d2148b896ef572ea4d9cd025371 (patch)
treee0e13b66a6f6052ab641b5febad89e94e53e4fd8 /playbooks/byo/openshift-master
parentf185fa6ce66a25b8f44c81aa963e0c27e2742586 (diff)
parent362a4eafc1ae9122f98adb5b96ad86ca39529c96 (diff)
downloadopenshift-b3f0b74e6fd07d2148b896ef572ea4d9cd025371.tar.gz
openshift-b3f0b74e6fd07d2148b896ef572ea4d9cd025371.tar.bz2
openshift-b3f0b74e6fd07d2148b896ef572ea4d9cd025371.tar.xz
openshift-b3f0b74e6fd07d2148b896ef572ea4d9cd025371.zip
Merge pull request #3057 from dgoodwin/serial-master-upgrade
Serial master upgrade
Diffstat (limited to 'playbooks/byo/openshift-master')
-rw-r--r--playbooks/byo/openshift-master/restart.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/playbooks/byo/openshift-master/restart.yml b/playbooks/byo/openshift-master/restart.yml
index 0a163526a..b60807a71 100644
--- a/playbooks/byo/openshift-master/restart.yml
+++ b/playbooks/byo/openshift-master/restart.yml
@@ -15,4 +15,16 @@
tasks:
- include_vars: ../../byo/openshift-cluster/cluster_hosts.yml
-- include: ../../common/openshift-master/restart.yml
+- include: ../../common/openshift-cluster/evaluate_groups.yml
+- include: ../../common/openshift-master/validate_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'