summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks/configure_external_etcd.yml
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-10-05 16:17:35 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-10-06 16:45:23 +0200
commit43b7dcd79df91114d6b7cd9c9bf09a4254746f73 (patch)
treef4dae4805b47dd4cc45e98ed9bce172cae7c9927 /roles/openshift_master/tasks/configure_external_etcd.yml
parenta25709a6f16913b59ef2edc3e07d8bc8a598f41e (diff)
downloadopenshift-43b7dcd79df91114d6b7cd9c9bf09a4254746f73.tar.gz
openshift-43b7dcd79df91114d6b7cd9c9bf09a4254746f73.tar.bz2
openshift-43b7dcd79df91114d6b7cd9c9bf09a4254746f73.tar.xz
openshift-43b7dcd79df91114d6b7cd9c9bf09a4254746f73.zip
migrate embedded etcd to external etcd
Diffstat (limited to 'roles/openshift_master/tasks/configure_external_etcd.yml')
-rw-r--r--roles/openshift_master/tasks/configure_external_etcd.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/configure_external_etcd.yml b/roles/openshift_master/tasks/configure_external_etcd.yml
new file mode 100644
index 000000000..b0590ac84
--- /dev/null
+++ b/roles/openshift_master/tasks/configure_external_etcd.yml
@@ -0,0 +1,17 @@
+---
+- name: Remove etcdConfig section
+ yedit:
+ src: /etc/origin/master/master-config.yaml
+ key: "etcdConfig"
+ state: absent
+- name: Set etcdClientInfo.ca to master.etcd-ca.crt
+ yedit:
+ src: /etc/origin/master/master-config.yaml
+ key: etcdClientInfo.ca
+ value: master.etcd-ca.crt
+- name: Set etcdClientInfo.urls to the external etcd
+ yedit:
+ src: /etc/origin/master/master-config.yaml
+ key: etcdClientInfo.urls
+ value:
+ - "{{ etcd_peer_url_scheme }}://{{ etcd_ip }}:{{ etcd_peer_port }}"