Use node names rather than IPs

This commit is contained in:
Joshua Boniface 2023-12-28 11:54:33 -05:00
parent ae4237c173
commit 5089aec178
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Zookeeper Prometheus exporter arguments
# {{ ansible_managed }}
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.is_coordinator %}{{ node.hostname }}:2181{% if not loop.last %},{% endif %}{% endfor %}'"