Commit 9590c92c by Feanil Patel

Correct the syntax for the rabbitmq config file.

parent a8268321
% {{ 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,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{% 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.
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
#} #}
[{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