Commit 451b43b2 by Feanil Patel

Merge pull request #1621 from edx/feanil/fix_rabbit_config

Correct the syntax for the rabbitmq config file.
parents 23b99bc2 700864c1
% {{ ansible_managed }} % {{ ansible_managed }}
[{rabbit, [{rabbit, [
{log_levels, [{connection, info}]}, {log_levels, [{connection, info}]},
{% if RABBITMQ_CLUSTERED -%} {% if RABBITMQ_CLUSTERED -%}
{%- set hosts= [] -%} {%- set hosts= [] -%}
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
{% do hosts.append("rabbit@ip-" + host.replace('.','-')) %} {% do hosts.append("rabbit@ip-" + host.replace('.','-')) %}
{%- endfor %} {%- endfor %}
[{cluster_nodes, {['{{ hosts|join("\',\'") }}'], disc}}] {cluster_nodes, {['{{ hosts|join("\',\'") }}'], disc}}
{%- else -%} {%- else -%}
{# If rabbitmq_clustered_hosts is set, use that instead assuming an aws stack. {# If rabbitmq_clustered_hosts is set, use that instead assuming an aws stack.
Note: That these names should include the node name prefix. eg. 'rabbit@hostname' Note: That these names should include the node name prefix. eg. 'rabbit@hostname'
#} #}
[{cluster_nodes, {['{{ rabbitmq_clustered_hosts|join("\',\'") }}'], disc}}] {cluster_nodes, {['{{ rabbitmq_clustered_hosts|join("\',\'") }}'], disc}}
{%- endif -%} {%- endif %}
}]. ]}].
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment