summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2015-11-05 18:09:00 -0500
committerAndrew Butcher <abutcher@redhat.com>2015-11-06 00:47:31 -0500
commitd0fbf1598a9ee6e52a4fae4c5922c580df06a78d (patch)
treed405f3e80d1389bfbf8659935b31ca4ad244a7b0 /roles/openshift_master
parent7b405f03f75b3c03a6016024ee757c1645bf234c (diff)
downloadopenshift-d0fbf1598a9ee6e52a4fae4c5922c580df06a78d.tar.gz
openshift-d0fbf1598a9ee6e52a4fae4c5922c580df06a78d.tar.bz2
openshift-d0fbf1598a9ee6e52a4fae4c5922c580df06a78d.tar.xz
openshift-d0fbf1598a9ee6e52a4fae4c5922c580df06a78d.zip
Start to handle pacemaker ha during upgrade
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index be77fce4a..35570923c 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -140,22 +140,27 @@
src: atomic-openshift-master-api.service.j2
dest: /usr/lib/systemd/system/{{ openshift.common.service_type }}-master-api.service
force: no
+ when: openshift_master_ha | bool and openshift_master_cluster_method == "native"
- name: Create the controllers service file
template:
src: atomic-openshift-master-controllers.service.j2
dest: /usr/lib/systemd/system/{{ openshift.common.service_type }}-master-controllers.service
force: no
+ when: openshift_master_ha | bool and openshift_master_cluster_method == "native"
- name: Create the api env file
template:
src: atomic-openshift-master-api.j2
dest: /etc/sysconfig/{{ openshift.common.service_type }}-master-api
force: no
+ when: openshift_master_ha | bool and openshift_master_cluster_method == "native"
- name: Create the controllers env file
template:
src: atomic-openshift-master-controllers.j2
dest: /etc/sysconfig/{{ openshift.common.service_type }}-master-controllers
force: no
+ when: openshift_master_ha | bool and openshift_master_cluster_method == "native"
- command: systemctl daemon-reload
+ when: openshift_master_ha | bool and openshift_master_cluster_method == "native"
# end workaround for missing systemd unit files
- name: Create session secrets file