Use node names rather than IPs
This commit is contained in:
parent
ae4237c173
commit
5089aec178
|
@ -1,4 +1,4 @@
|
||||||
# Zookeeper Prometheus exporter arguments
|
# Zookeeper Prometheus exporter arguments
|
||||||
# {{ ansible_managed }}
|
# {{ 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 %}'"
|
||||||
|
|
Loading…
Reference in New Issue