pvc-ansible/roles/pvc/templates/zookeeper/zoo.cfg.j2

16 lines
301 B
Django/Jinja

# PVC Zookeeper configuration
# {{ ansible_managed }}
tickTime=1000
initLimit=10
syncLimit=5
dataDir=/var/lib/zookeeper
autopurge.purgeInterval=72
clientPort=2181
{% for node in pvc_nodes if node.is_coordinator %}
server.{{ node.node_id }}={{ node.hostname.split('.')[0] }}:2888:3888
{% endfor %}