Преглед на файлове

Use etcd_ip when communicating with the cluster as a peer in etcd scaleup.

Andrew Butcher преди 7 години
родител
ревизия
893840d736
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      playbooks/common/openshift-etcd/scaleup.yml

+ 1 - 1
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: