2015-07-01 17:23:13 +00:00
|
|
|
[
|
2015-07-24 16:18:08 +00:00
|
|
|
{kernel, [
|
2015-08-10 05:02:25 +00:00
|
|
|
{inet_dist_use_interface, {% raw %}{{% endraw %}{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] | regex_replace('\.', ',') }}}},
|
|
|
|
{inet_dist_listen_min, {{ rabbitmq_cluster_port }}},
|
|
|
|
{inet_dist_listen_max, {{ rabbitmq_cluster_port }}}
|
2015-07-24 16:18:08 +00:00
|
|
|
]},
|
2015-07-01 17:23:13 +00:00
|
|
|
{rabbit, [
|
2015-07-24 16:18:08 +00:00
|
|
|
{tcp_listeners, [
|
2015-08-10 05:02:25 +00:00
|
|
|
{"{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}", {{ rabbitmq_port }}}
|
2015-07-24 16:18:08 +00:00
|
|
|
]},
|
2015-07-01 17:23:13 +00:00
|
|
|
{default_user, <<"{{ rabbitmq_user }}">>},
|
2015-07-24 16:18:08 +00:00
|
|
|
{default_pass, <<"{{ rabbitmq_password }}">>},
|
|
|
|
{cluster_partition_handling, autoheal},
|
2015-08-20 14:37:00 +00:00
|
|
|
{cluster_nodes, {[
|
2015-07-26 10:39:07 +00:00
|
|
|
{% for host in groups['rabbitmq'] %}'rabbit@{{ hostvars[host]['ansible_hostname'] }}'{% if not loop.last %},{% endif %}{% endfor %}
|
2015-07-24 16:18:08 +00:00
|
|
|
|
2015-08-20 14:37:00 +00:00
|
|
|
], disc}}
|
2015-07-24 16:18:08 +00:00
|
|
|
]},
|
|
|
|
{rabbitmq_management, [
|
|
|
|
{listener, [
|
|
|
|
{ip, "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"},
|
2015-08-10 05:02:25 +00:00
|
|
|
{port, {{ rabbitmq_management_port }}}
|
2015-07-24 16:18:08 +00:00
|
|
|
]}
|
2015-07-01 17:23:13 +00:00
|
|
|
]}
|
|
|
|
].
|
|
|
|
% EOF
|