summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-08-30 23:15:51 -0400
committerGitHub <noreply@github.com>2017-08-30 23:15:51 -0400
commitd57f27bf71f68ba91996bc4a0b1e79b3be956b7e (patch)
tree1a0c82fbf9a94fa1a931644eb3276eb9d8903cd4 /roles/openshift_master/tasks
parent3efcda7698d053c16c247e557005d694db58da9e (diff)
parent1a0241e889e94567b5d33d89d3210876f0c34c88 (diff)
downloadopenshift-d57f27bf71f68ba91996bc4a0b1e79b3be956b7e.tar.gz
openshift-d57f27bf71f68ba91996bc4a0b1e79b3be956b7e.tar.bz2
openshift-d57f27bf71f68ba91996bc4a0b1e79b3be956b7e.tar.xz
openshift-d57f27bf71f68ba91996bc4a0b1e79b3be956b7e.zip
Merge pull request #5247 from mgugino-upstream-stage/fix-master-upgrades
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/main.yml3
-rw-r--r--roles/openshift_master/tasks/systemd_units.yml10
2 files changed, 10 insertions, 3 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index ba56ac94e..a06defdb9 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -177,9 +177,6 @@
local_facts:
no_proxy_etcd_host_ips: "{{ openshift_no_proxy_etcd_host_ips }}"
-- name: Remove the legacy master service if it exists
- include: clean_systemd_units.yml
-
- name: Install the systemd units
include: systemd_units.yml
diff --git a/roles/openshift_master/tasks/systemd_units.yml b/roles/openshift_master/tasks/systemd_units.yml
index 72c231e52..782a35abe 100644
--- a/roles/openshift_master/tasks/systemd_units.yml
+++ b/roles/openshift_master/tasks/systemd_units.yml
@@ -3,6 +3,16 @@
# playbooks. For that reason the ha_svc variables are use set_fact instead of
# the vars directory on the role.
+# This play may be consumed outside the role, we need to ensure that
+# openshift_master_config_dir is set.
+- name: Set openshift_master_config_dir if unset
+ set_fact:
+ openshift_master_config_dir: '/var/lib/origin'
+ when: openshift_master_config_dir is not defined
+
+- name: Remove the legacy master service if it exists
+ include: clean_systemd_units.yml
+
- name: Init HA Service Info
set_fact:
containerized_svc_dir: "/usr/lib/systemd/system"