summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master/restart_hosts_pacemaker.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-10-20 11:38:42 -0400
committerGitHub <noreply@github.com>2016-10-20 11:38:42 -0400
commita1d339084c40f2f33b41426ea61510172eebd231 (patch)
treec114105570bc39ce3aed906be833a9ec44f1309d /playbooks/common/openshift-master/restart_hosts_pacemaker.yml
parent4a5b2dd0510ac092da44a09730a734fe9ef7e112 (diff)
parente86b8430b6da9f633b53f7b2dce328f6ccb77a75 (diff)
downloadopenshift-a1d339084c40f2f33b41426ea61510172eebd231.tar.gz
openshift-a1d339084c40f2f33b41426ea61510172eebd231.tar.bz2
openshift-a1d339084c40f2f33b41426ea61510172eebd231.tar.xz
openshift-a1d339084c40f2f33b41426ea61510172eebd231.zip
Merge pull request #2627 from dgoodwin/remove-pacemaker-restarts
Drop pacemaker restart logic.
Diffstat (limited to 'playbooks/common/openshift-master/restart_hosts_pacemaker.yml')
-rw-r--r--playbooks/common/openshift-master/restart_hosts_pacemaker.yml25
1 files changed, 0 insertions, 25 deletions
diff --git a/playbooks/common/openshift-master/restart_hosts_pacemaker.yml b/playbooks/common/openshift-master/restart_hosts_pacemaker.yml
deleted file mode 100644
index c9219e8de..000000000
--- a/playbooks/common/openshift-master/restart_hosts_pacemaker.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-- name: Fail over master resource
- command: >
- pcs resource move master {{ hostvars | oo_select_keys(groups['oo_masters_to_config']) | oo_collect('openshift.common.hostname', {'is_active': 'False'}) | list | first }}
-- name: Wait for master API to come back online
- become: no
- local_action:
- module: wait_for
- host="{{ openshift.master.cluster_hostname }}"
- state=started
- delay=10
- port="{{ openshift.master.api_port }}"
-- name: Restart master system
- # https://github.com/ansible/ansible/issues/10616
- shell: sleep 2 && shutdown -r now "OpenShift Ansible master rolling restart"
- async: 1
- poll: 0
- ignore_errors: true
- become: yes
-- name: Wait for master to start
- become: no
- local_action:
- module: wait_for
- host="{{ inventory_hostname }}"
- state=started
- delay=10