opscode-cookbooks/rabbitmq — pull request #66 by rochfordk (2013-07-09 10:27:59+00:00)
Title: RabbitMQ - Error in rabbitmq.config.erb template results in misconfiguration of cluster_nodes config entry and failure of cookbook to configure cluster 

The current rabbitmq.config.erb template does not result in a properly formatted cluster_nodes entry in the rabbitmq.config file as per RabbitMq docs[1].

Cookbook:
https://github.com/opscode-cookbooks/rabbitmq

File:
https://github.com/opscode-cookbooks/rabbitmq/blob/master/templates/default/rabbitmq-env.conf.erb

Change required:
{code} {cluster_nodes, [<%= node['rabbitmq']['cluster_disk_nodes'].map{|n| "\'#{n}\'"}.join(',') %>]}, {code}

to

{code} {cluster_nodes, {[<%= node['rabbitmq']['cluster_disk_nodes'].map{|n| "\'#{n}\'"}.join(',') %>], disc}}, {code}

References:
[1] http://www.rabbitmq.com/clustering.html