summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-10-02 16:36:18 -0400
committerAndrew Butcher <abutcher@redhat.com>2017-10-02 16:36:18 -0400
commit893840d7362a845b82e80d2b655b99c95ce60c39 (patch)
treedcae0ca84c1dfe9198597521ca7129cb2c458b89 /playbooks
parent125c266f8f9149d773683a6e4b2fbacf2b557005 (diff)
downloadopenshift-893840d7362a845b82e80d2b655b99c95ce60c39.tar.gz
openshift-893840d7362a845b82e80d2b655b99c95ce60c39.tar.bz2
openshift-893840d7362a845b82e80d2b655b99c95ce60c39.tar.xz
openshift-893840d7362a845b82e80d2b655b99c95ce60c39.zip
Use etcd_ip when communicating with the cluster as a peer in etcd scaleup.
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-etcd/scaleup.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-etcd/scaleup.yml b/playbooks/common/openshift-etcd/scaleup.yml
index 4f83264d0..4809711e7 100644
--- a/playbooks/common/openshift-etcd/scaleup.yml
+++ b/playbooks/common/openshift-etcd/scaleup.yml
@@ -20,7 +20,7 @@
/usr/bin/etcdctl --cert-file {{ etcd_peer_cert_file }}
--key-file {{ etcd_peer_key_file }}
--ca-file {{ etcd_peer_ca_file }}
- -C {{ etcd_peer_url_scheme }}://{{ hostvars[etcd_ca_host].etcd_hostname }}:{{ etcd_client_port }}
+ -C {{ etcd_peer_url_scheme }}://{{ hostvars[etcd_ca_host].etcd_ip }}:{{ etcd_client_port }}
member add {{ etcd_hostname }} {{ etcd_peer_url_scheme }}://{{ etcd_ip }}:{{ etcd_peer_port }}
delegate_to: "{{ etcd_ca_host }}"
failed_when: