summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-02-05 11:24:11 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-02-05 11:24:11 -0500
commita87dfdd698f251d3892ef98f189b9f08539039f5 (patch)
treebc70995516fb4f482ce3afa4d95531745312a196
parentb25ad7c7462c1ead726fa998e99b12a0c4da8676 (diff)
parentef46fef8eb76287174ab996dbd09edca91e23b10 (diff)
downloadopenshift-a87dfdd698f251d3892ef98f189b9f08539039f5.tar.gz
openshift-a87dfdd698f251d3892ef98f189b9f08539039f5.tar.bz2
openshift-a87dfdd698f251d3892ef98f189b9f08539039f5.tar.xz
openshift-a87dfdd698f251d3892ef98f189b9f08539039f5.zip
Merge pull request #1342 from detiber/maskMaster
Mask master service when using native ha
-rw-r--r--roles/openshift_master/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index aa5e593b6..83f6f7542 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -285,6 +285,10 @@
master_service_status_changed: "{{ start_result | changed }}"
when: not openshift_master_ha | bool
+- name: Mask master service
+ command: systemctl mask {{ openshift.common.service_type }}-master
+ when: openshift_master_ha | bool and openshift.master.cluster_method == 'native'
+
- name: Start and enable master api
service: name={{ openshift.common.service_type }}-master-api enabled=yes state=started
when: openshift_master_ha | bool and openshift.master.cluster_method == 'native'