summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-09-11 15:56:46 -0400
committerAndrew Butcher <abutcher@redhat.com>2017-09-12 16:12:55 -0400
commit833c18bf8efa3c0988975138f1b7ddb95cd25f12 (patch)
treee2abd47bc522f0c8bf3c9cc5e297d961d3fa4986 /roles/openshift_master
parent7f6b76563c9fe6a96ea864c2dfea092e1f4805bc (diff)
downloadopenshift-833c18bf8efa3c0988975138f1b7ddb95cd25f12.tar.gz
openshift-833c18bf8efa3c0988975138f1b7ddb95cd25f12.tar.bz2
openshift-833c18bf8efa3c0988975138f1b7ddb95cd25f12.tar.xz
openshift-833c18bf8efa3c0988975138f1b7ddb95cd25f12.zip
Update master config with new client urls during etcd scaleup.
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/tasks/update_etcd_client_urls.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/update_etcd_client_urls.yml b/roles/openshift_master/tasks/update_etcd_client_urls.yml
new file mode 100644
index 000000000..1ab105808
--- /dev/null
+++ b/roles/openshift_master/tasks/update_etcd_client_urls.yml
@@ -0,0 +1,8 @@
+---
+- yedit:
+ src: "{{ openshift.common.config_base }}/master/master-config.yaml"
+ key: 'etcdClientInfo.urls'
+ value: "{{ openshift.master.etcd_urls }}"
+ notify:
+ - restart master api
+ - restart master controllers