Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
Auto-cluster, ssl, new attributes
Browse files Browse the repository at this point in the history
- combined cluster and default recipe into one; :cluster switch on and off
- added auto-clustering
- added ssl support
- added default user/pass control through attributes
  • Loading branch information
harlanbarnes authored and jtimberman committed Feb 13, 2012
1 parent 648bda1 commit eca2e0b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rabbitmq/templates/default/rabbitmq.config.erb
@@ -0,0 +1,21 @@
%%%
%% Generated by Chef
%%%

[
{rabbit, [
<% if node[:rabbitmq][:cluster] && node[:rabbitmq][:cluster_disk_nodes] -%>
{cluster_nodes, [<%= node[:rabbitmq][:cluster_disk_nodes].map{|n| "\'#{n}\'"}.join(',') %>]},
<% end %>
<% if node[:rabbitmq][:ssl] -%>
{ssl_listeners, [<%= node[:rabbitmq][:ssl_port] %>]},
{ssl_options, [{cacertfile,"<%= node[:rabbitmq][:ssl_cacert] %>"},
{certfile,"<%= node[:rabbitmq][:ssl_cert] %>"},
{keyfile,"<%= node[:rabbitmq][:ssl_key] %>"},
{verify,verify_none},
{fail_if_no_peer_cert,false}]},
<% end %>
{default_user, <<"<%= node[:rabbitmq][:default_user] %>">>},
{default_pass, <<"<%= node[:rabbitmq][:default_pass] %>">>}
]}
].

0 comments on commit eca2e0b

Please sign in to comment.