From c6590f8ab9047f94895aedb7d90924d911ff9495 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 22 Jun 2021 02:46:56 -0400 Subject: [PATCH] Configure Zookeeper only on Cluster address --- roles/pvc/templates/zookeeper/zoo.cfg.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/pvc/templates/zookeeper/zoo.cfg.j2 b/roles/pvc/templates/zookeeper/zoo.cfg.j2 index 8e49385..aa5609f 100644 --- a/roles/pvc/templates/zookeeper/zoo.cfg.j2 +++ b/roles/pvc/templates/zookeeper/zoo.cfg.j2 @@ -9,7 +9,8 @@ dataDir=/var/lib/zookeeper autopurge.purgeInterval=72 clientPort=2181 +clientPortAddress={% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.cluster_ip }}{% endfor %} {% for node in pvc_nodes if node.is_coordinator %} -server.{{ node.node_id }}={{ node.hostname.split('.')[0] }}.{{ pvc_cluster_domain }}:2888:3888 +server.{{ node.node_id }}={{ node.cluster_ip }}:2888:3888 {% endfor %}