Skip to content

Commit 9c4c6fc

Browse files
nicolas.osoriowyardley
authored andcommitted
Handle rabbitmq.config when cluster_nodes is empty after migrating templates on PR #978
1 parent 5094da0 commit 9c4c6fc

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)