Fix rabbit configuration without cluster

This commit is contained in:
vic 2012-11-29 15:09:44 +04:00
parent d23a264bd3
commit 917709f3d3

View File

@ -2,12 +2,16 @@
% Template Path: <%= module_name %>/templates/rabbitmq.config
[
<% if config_cluster -%>
{rabbit, [{cluster_nodes, [<%= cluster_disk_nodes.map { |n| "\'rabbit@#{n}\'" }.join(', ') %>]}]}
<% end -%>
<% if config_stomp -%>
% Configure the Stomp Plugin listening port
,{rabbitmq_stomp, [{tcp_listeners, [<%= stomp_port %>]} ]}
{rabbit, [{cluster_nodes, [<%= cluster_disk_nodes.map { |n| "\'rabbit@#{n}\'" }.join(', ') %>]}]}
<% if config_stomp -%>
% Configure the Stomp Plugin listening port
,{rabbitmq_stomp, [{tcp_listeners, [<%= stomp_port %>]} ]}
<% end -%>
<% else -%>
<% if config_stomp -%>
% Configure the Stomp Plugin listening port
{rabbitmq_stomp, [{tcp_listeners, [<%= stomp_port %>]} ]}
<% end -%>
<% end -%>
].
% EOF