RBMQ cluster cant use ip adrr as names, so we reveting this back to hostnames

Change-Id: Ida62e9d5d1861d1594acbf1baf9ca22eb4c8d898
This commit is contained in:
Proskurin Kirill 2016-04-05 13:12:03 +00:00
parent 0d1eb79009
commit 011cbb20b7
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
[
{version, 1},
{nodes, [{{ list_ips_by_service('infra/rabbitmq/rabbitmq', prefix='rabbit@') }}]},
{gospel, {node, rabbit@{{ list_ips_by_service('infra/rabbitmq/rabbitmq')[0] }}}}
{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'] }}'}}
].