content => template('rabbitmq/rabbitmq.conf.erb'),
}
+ concat::fragment { 'rabbit_foot':
+ target => '/etc/rabbitmq/rabbitmq.config',
+ order => 50,
+ content => "]}\n"
+ }
+
concat::fragment { 'rabbitmq_conf_foot':
target => '/etc/rabbitmq/rabbitmq.config',
order => 99,
[
-<% if scope.lookupvar('cluster') -%>
-{rabbit, [{cluster_nodes, ['<%= scope.lookupvar('clustermembers').to_a.flatten.join("', '") %>']}]}
+{rabbit, [
+<% if @cluster -%>
+ {cluster_nodes, ['<%= @clustermembers.to_a.flatten.join("', '") %>']}
<% end -%>
--- /dev/null
+ {ssl_listeners, [5671]},
+ {ssl_options, [{cacertfile,"/etc/ssl/debian/certs/ca.crt"},
+ {certfile,"/etc/ssl/debian/certs/thishost-server.crt"},
+ {keyfile,"/etc/ssl/debian/keys/thishost-server.key"},
+ {verify,verify_none},
+ {fail_if_no_peer_cert,false}]}
+
master => $cc_master,
}
+ user { 'rabbitmq':
+ groups => 'ssl-cert'
+ }
+
+ concat::fragment { 'rabbit_ssl':
+ target => '/etc/rabbitmq/rabbitmq.config',
+ order => 35,
+ source => 'puppet:///modules/roles/pubsub/rabbitmq.config'
+ }
+
rabbitmq_user { 'admin':
admin => true,
password => $admin_password,