Skip to content

Commit

Permalink
Merge pull request #993 from nosrio/FixClusterNodesConfig
Browse files Browse the repository at this point in the history
Handle rabbitmq.config when cluster_nodes is empty
  • Loading branch information
wyardley committed May 20, 2024
2 parents 6011c2d + aaa46be commit 55a0fd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/rabbitmq.config.epp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
{auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]},
<% } -%>
<% if $rabbitmq::config::config_cluster {-%>
<% if !$rabbitmq::config::cluster_nodes.empty {-%>
{cluster_nodes, {['rabbit@<%= $rabbitmq::config::cluster_nodes.join("', 'rabbit@") %>'], <%= $rabbitmq::config::cluster_node_type %>}},
<% } else {%>
{cluster_nodes, {[], <%= $rabbitmq::config::cluster_node_type %>}},
<% } %>
{cluster_partition_handling, <%= $rabbitmq::config::cluster_partition_handling %>},
<% } -%>
{tcp_listen_options, [
Expand Down

0 comments on commit 55a0fd5

Please sign in to comment.