From 5d0a9ff7e387ea92aac72783b394edc800f5f3de Mon Sep 17 00:00:00 2001 From: Daniel Gadd Date: Mon, 23 Feb 2015 09:47:42 +1300 Subject: [PATCH] Fixed up rabbitmq.conf file layout Fixed layout of ssl_options section to make sure they are on separate lines, making it easier to read when the file is cat'ed. --- templates/rabbitmq.config.erb | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/templates/rabbitmq.config.erb b/templates/rabbitmq.config.erb index 5681ec638..c81096552 100644 --- a/templates/rabbitmq.config.erb +++ b/templates/rabbitmq.config.erb @@ -26,14 +26,18 @@ <%- else -%> {ssl_listeners, [<%= @ssl_port %>]}, <%- end -%> - {ssl_options, [<%- if @ssl_cacert != 'UNSET' -%>{cacertfile,"<%= @ssl_cacert %>"},<%- end -%> - {certfile,"<%= @ssl_cert %>"}, - {keyfile,"<%= @ssl_key %>"}, - {verify,<%= @ssl_verify %>}, - {fail_if_no_peer_cert,<%= @ssl_fail_if_no_peer_cert %>} - <%- if @ssl_versions -%> - ,{versions, [<%= @ssl_versions.sort.map { |v| "'#{v}'" }.join(', ') %>]} - <% end -%>]}, + {ssl_options, [ + <%- if @ssl_cacert != 'UNSET' -%> + {cacertfile,"<%= @ssl_cacert %>"}, + <%- end -%> + {certfile,"<%= @ssl_cert %>"}, + {keyfile,"<%= @ssl_key %>"}, + {verify,<%= @ssl_verify %>}, + {fail_if_no_peer_cert,<%= @ssl_fail_if_no_peer_cert %>} + <%- if @ssl_versions -%> + ,{versions, [<%= @ssl_versions.sort.map { |v| "'#{v}'" }.join(', ') %>]} + <%- end -%> + ]}, <%- end -%> <% if @config_variables -%> <%- @config_variables.keys.sort.each do |key| -%>