summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks/systemd_units.yml
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-09-07 10:57:28 -0400
committerGitHub <noreply@github.com>2017-09-07 10:57:28 -0400
commit6da235f41a31776b1bc253a34dc14a30307e331e (patch)
treebda2cc62691a59fb6ac6ed4978fa7f15ec046121 /roles/openshift_master/tasks/systemd_units.yml
parentaad4ccce7ce6641d3c720507568f6da779a66995 (diff)
parent8bf97723ceaca02fe12b86466f8383aa211ead5e (diff)
downloadopenshift-6da235f41a31776b1bc253a34dc14a30307e331e.tar.gz
openshift-6da235f41a31776b1bc253a34dc14a30307e331e.tar.bz2
openshift-6da235f41a31776b1bc253a34dc14a30307e331e.tar.xz
openshift-6da235f41a31776b1bc253a34dc14a30307e331e.zip
Merge pull request #5208 from mgugino-upstream-stage/remove-openshift_common
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_master/tasks/systemd_units.yml')
-rw-r--r--roles/openshift_master/tasks/systemd_units.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/systemd_units.yml b/roles/openshift_master/tasks/systemd_units.yml
index c480d8223..7a918c57e 100644
--- a/roles/openshift_master/tasks/systemd_units.yml
+++ b/roles/openshift_master/tasks/systemd_units.yml
@@ -10,6 +10,13 @@
openshift_master_config_dir: '/etc/origin/master'
when: openshift_master_config_dir is not defined
+# This play may be consumed outside the role, we need to ensure that
+# r_openshift_master_data_dir is set.
+- name: Set r_openshift_master_data_dir if unset
+ set_fact:
+ r_openshift_master_data_dir: "{{ openshift_data_dir | default('/var/lib/origin') }}"
+ when: r_openshift_master_data_dir is not defined
+
- name: Remove the legacy master service if it exists
include: clean_systemd_units.yml