Merge "Improve rabbitmq-clusterer template code format"

This commit is contained in:
Jenkins 2016-08-19 01:50:59 +00:00 committed by Gerrit Code Review
commit d44055fbff

View File

@ -1,9 +1,11 @@
[
{version, 1},
{nodes, [
{% for host in groups['rabbitmq'] %} {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}{% if not loop.last %},{% endif %}
{% endfor %}
{% 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'] }}'}}
{gospel,
{node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}}
].