Skip to content

Commit

Permalink
Fixed up rabbitmq.conf file layout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielgadd committed Feb 22, 2015
1 parent 2f955e1 commit 5d0a9ff
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions templates/rabbitmq.config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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| -%>
Expand Down

0 comments on commit 5d0a9ff

Please sign in to comment.