From 9c76790c3f27acf7682858616d7e9948de7a5160 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
Date: Mon, 23 Oct 2017 15:16:09 +0200
Subject: Set the proper external etcd ip address when migrating embeded etcd

---
 playbooks/common/openshift-etcd/embedded2external.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'playbooks/common')

diff --git a/playbooks/common/openshift-etcd/embedded2external.yml b/playbooks/common/openshift-etcd/embedded2external.yml
index 9264f3c32..b16b78c4f 100644
--- a/playbooks/common/openshift-etcd/embedded2external.yml
+++ b/playbooks/common/openshift-etcd/embedded2external.yml
@@ -158,7 +158,7 @@
       tasks_from: configure_external_etcd
     vars:
       etcd_peer_url_scheme: "https"
-      etcd_ip: "{{ openshift.common.ip }}"
+      etcd_ip: "{{ hostvars[groups.oo_etcd_to_config.0].openshift.common.ip }}"
       etcd_peer_port: 2379
 
   # 9. start the master
-- 
cgit v1.2.3