summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-16 20:24:40 -0400
committerGitHub <noreply@github.com>2017-06-16 20:24:40 -0400
commite37c99d056a045aee2e0c4c060fe8b1b2ff1d8bc (patch)
treefacaae1c92f454a14e8ba6fe1ee74b9668709ec0 /roles
parent7d346c8abe48aeb6affa189e766480c2ef80e73b (diff)
parent09823dc64b1447a0a5a2a57921c74c77705c0b3d (diff)
downloadopenshift-e37c99d056a045aee2e0c4c060fe8b1b2ff1d8bc.tar.gz
openshift-e37c99d056a045aee2e0c4c060fe8b1b2ff1d8bc.tar.bz2
openshift-e37c99d056a045aee2e0c4c060fe8b1b2ff1d8bc.tar.xz
openshift-e37c99d056a045aee2e0c4c060fe8b1b2ff1d8bc.zip
Merge pull request #4435 from sdodson/etcdv3-clean-install
Merged by openshift-bot
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_master/defaults/main.yml3
-rw-r--r--roles/openshift_master/tasks/main.yml20
2 files changed, 21 insertions, 2 deletions
diff --git a/roles/openshift_master/defaults/main.yml b/roles/openshift_master/defaults/main.yml
index 14a1daf6c..6a082d71a 100644
--- a/roles/openshift_master/defaults/main.yml
+++ b/roles/openshift_master/defaults/main.yml
@@ -1,4 +1,3 @@
---
openshift_node_ips: []
-# TODO: update setting these values based on the facts
-#openshift_version: "{{ openshift_pkg_version | default(openshift_image_tag | default(openshift.docker.openshift_image_tag | default(''))) }}"
+r_openshift_master_clean_install: false
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index aed5598c0..035c15fef 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -164,6 +164,26 @@
- restart master api
- restart master controllers
+- name: Configure master to use etcd3 storage backend on 3.6 clean installs
+ yedit:
+ src: /etc/origin/master/master-config.yaml
+ key: "{{ item.key }}"
+ value: "{{ item.value }}"
+ with_items:
+ - key: kubernetesMasterConfig.apiServerArguments.storage-backend
+ value:
+ - etcd3
+ - key: kubernetesMasterConfig.apiServerArguments.storage-media-type
+ value:
+ - application/vnd.kubernetes.protobuf
+ when:
+ - r_openshift_master_clean_install
+ - openshift.common.version_gte_3_6
+ notify:
+ - restart master
+ - restart master api
+ - restart master controllers
+
- include: set_loopback_context.yml
when: openshift.common.version_gte_3_2_or_1_2