From 23b95a4146dc2c28a1495ea15615eb09383f6eec Mon Sep 17 00:00:00 2001 From: Anton Nerozya Date: Thu, 13 Jul 2017 15:55:16 +0200 Subject: [PATCH] set ETCDCTL_ENDPOINT for etcdctl --- roles/etcd/templates/etcd.env.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/etcd/templates/etcd.env.yml b/roles/etcd/templates/etcd.env.yml index 07e200e03..a71c6b161 100644 --- a/roles/etcd/templates/etcd.env.yml +++ b/roles/etcd/templates/etcd.env.yml @@ -1,5 +1,6 @@ ETCD_DATA_DIR={{ etcd_data_dir }} ETCD_ADVERTISE_CLIENT_URLS={{ etcd_client_url }} +ETCDCTL_ENDPOINT=https://127.0.0.1:2379 ETCD_INITIAL_ADVERTISE_PEER_URLS={{ etcd_peer_url }} ETCD_INITIAL_CLUSTER_STATE={% if etcd_cluster_is_healthy.rc != 0 | bool %}new{% else %}existing{% endif %}