kolla-ansible/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2
Sam Yaple d01e9a43dd Use rabbitmq-clusterer when deploying
Change-Id: I2a9c6fa16444a2142ab77f58d188eda84a2e59fd
Partially-Implements: blueprint rabbitmq-clusterer
2015-11-03 04:51:45 +00:00

10 lines
268 B
Django/Jinja

[
{version, 1},
{nodes, [
{% for host in groups['rabbitmq'] %} {rabbit@{{ hostvars[host]['ansible_hostname'] }}, disc}{% if not loop.last %},{% endif %}
{% endfor %}
]},
{gospel, {node, rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}}}
].