Skip to content

Commit ab854b2

Browse files
author
nicolas.osorio
committed
Handle rabbitmq.config when cluster_nodes is empty
1 parent 6011c2d commit ab854b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/rabbitmq.config.epp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
{auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]},
2020
<% } -%>
2121
<% if $rabbitmq::config::config_cluster {-%>
22+
<% if !$rabbitmq::config::cluster_nodes.empty {-%>
2223
{cluster_nodes, {['rabbit@<%= $rabbitmq::config::cluster_nodes.join("', 'rabbit@") %>'], <%= $rabbitmq::config::cluster_node_type %>}},
24+
<% } else {%>
25+
{cluster_nodes, {[], <%= $rabbitmq::config::cluster_node_type %>}},
26+
<% } %>
2327
{cluster_partition_handling, <%= $rabbitmq::config::cluster_partition_handling %>},
2428
<% } -%>
2529
{tcp_listen_options, [

0 commit comments

Comments
 (0)