openstack-ansible/playbooks/roles/rabbitmq_server/templates/rabbitmq.config.j2
Steve Lewis af1b69cb1e Set Rabbit recovery method for network partitions
Adds configurable option rabbit_cluster_partition_handling with default
value of pause_minority. Allows option to be explicitly set to ignore
through Ansible to reset to prior (and RabbitMQ default) behavior.

Change-Id: I52625390b388a55c6ed210b5804c7de336985f37
Closes-Bug: #1454860
2015-05-27 19:52:55 -07:00

10 lines
374 B
Django/Jinja

[
{rabbit, [
{loopback_users, []},
{% if rabbitmq_cluster_partition_handling != 'ignore' %}{cluster_partition_handling, {{ rabbitmq_cluster_partition_handling }}},{% endif %}
{cluster_nodes, {
[ {% for host in groups['rabbitmq_all'] %}'rabbit@{{ hostvars[host]['ansible_ssh_host'] }}'{% if not loop.last %}, {% endif %}{% endfor %}], disc}
}
]}
].