summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-11-03 15:34:32 -0700
committerGitHub <noreply@github.com>2017-11-03 15:34:32 -0700
commit413fe019b488b75909629c68949ba693004afd6a (patch)
treefbac3883785c47aedd655467222f0bc17041bc99 /roles/openshift_master
parent857ae368258799a747eb5f5868184cc6f71c8db4 (diff)
parentbaa6713c9581261acacef9b8dcf6fad51cfdac65 (diff)
downloadopenshift-413fe019b488b75909629c68949ba693004afd6a.tar.gz
openshift-413fe019b488b75909629c68949ba693004afd6a.tar.bz2
openshift-413fe019b488b75909629c68949ba693004afd6a.tar.xz
openshift-413fe019b488b75909629c68949ba693004afd6a.zip
Merge pull request #6005 from mgugino-upstream-stage/fix-master-version-detect
Automatic merge from submit-queue. Fix master upgrade version detect and systemd enable Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1508755 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1509158
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/tasks/systemd_units.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/systemd_units.yml b/roles/openshift_master/tasks/systemd_units.yml
index 5751723ab..8420dfb8c 100644
--- a/roles/openshift_master/tasks/systemd_units.yml
+++ b/roles/openshift_master/tasks/systemd_units.yml
@@ -58,6 +58,17 @@
- l_create_ha_unit_files | changed
# end workaround for missing systemd unit files
+- name: enable master services
+ systemd:
+ name: "{{ openshift.common.service_type }}-master-{{ item }}"
+ enabled: yes
+ with_items:
+ - api
+ - controllers
+ when:
+ - openshift.master.cluster_method == "native"
+ - not openshift.common.is_master_system_container | bool
+
- name: Preserve Master API Proxy Config options
command: grep PROXY /etc/sysconfig/{{ openshift.common.service_type }}-master-api
register: l_master_api_proxy