Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen ip address configuration for management console. #464

Merged
merged 1 commit into from
Oct 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
# Change non SSL web console listen port
default['rabbitmq']['web_console_port'] = 15672

# Add an ability to set web console listen ip.
default['rabbitmq']['web_console_interface'] = nil

# tcp listen options
default['rabbitmq']['tcp_listen'] = true
default['rabbitmq']['tcp_listen_packet'] = 'raw'
Expand Down
6 changes: 6 additions & 0 deletions templates/default/rabbitmq.config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<% if node['rabbitmq']['web_console_ssl'] -%>
{rabbitmq_management, [
{listener, [{port, <%= node['rabbitmq']['web_console_ssl_port'] %>},
<% if node['rabbitmq']['web_console_interface'] -%>
{ip, "<%= node['rabbitmq']['web_console_interface'] %>"},
<% end -%>
{ssl, true},
{ssl_opts, [{cacertfile,"<%= node['rabbitmq']['ssl_cacert'] %>"},
{certfile,"<%= node['rabbitmq']['ssl_cert'] %>"},
Expand All @@ -22,6 +25,9 @@
{rabbitmq_management, [
{listener, [
{port, <%= node['rabbitmq']['web_console_port'] %>}
<% if node['rabbitmq']['web_console_interface'] -%>
,{ip, "<%= node['rabbitmq']['web_console_interface'] %>"}
<% end -%>
]}
]},
<% end %>
Expand Down