Use all coordinators

This commit is contained in:
Joshua Boniface 2023-12-28 11:45:50 -05:00
parent ce14cdb938
commit ae4237c173
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
# Zookeeper Prometheus exporter arguments # Zookeeper Prometheus exporter arguments
# {{ ansible_managed }} # {{ ansible_managed }}
# Set the zk-hosts to our cluster local IP address as this is where Zookeeper listens ARGS="-zk-hosts='{% for node in pvc_nodes if node.is_coordinator %}{{ node.cluster_ip }}:2181{% if not loop.last %},{% endif %}{% endfor %}'"
ARGS="-zk-hosts='{% for node in pvc_nodes if node.hostname == this_node %}{{ node.cluster_ip }}{% endfor %}:2181'"