0382909dbb
The original purpose for having an abstract like 'database' rather than the service name of 'mariadb' has been change. Our direction is different and this patch reflects consistent naming throughout Change-Id: I704896191cc5243f9dab2a4cca9120e9dc2ceb2c Closes-Bug: #1478328
25 lines
822 B
Django/Jinja
25 lines
822 B
Django/Jinja
[
|
|
{kernel, [
|
|
{inet_dist_use_interface, {% raw %}{{% endraw %}{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] | regex_replace('\.', ',') }}}}
|
|
]},
|
|
{rabbit, [
|
|
{tcp_listeners, [
|
|
{"{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}", 5672}
|
|
]},
|
|
{default_user, <<"{{ rabbitmq_user }}">>},
|
|
{default_pass, <<"{{ rabbitmq_password }}">>},
|
|
{cluster_partition_handling, autoheal},
|
|
{cluster_nodes, [
|
|
{% for host in groups['rabbitmq'] %}'rabbit@{{ hostvars[host]['ansible_hostname'] }}'{% if not loop.last %},{% endif %}{% endfor %}
|
|
|
|
]}
|
|
]},
|
|
{rabbitmq_management, [
|
|
{listener, [
|
|
{ip, "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"},
|
|
{port, 15672}
|
|
]}
|
|
]}
|
|
].
|
|
% EOF
|