Skip to content

Commit

Permalink
Merge pull request #26 from veger/make_ports_configurable
Browse files Browse the repository at this point in the history
Make ports configurable
  • Loading branch information
alexey-medvedchikov authored Dec 15, 2016
2 parents 687e2de + 0809521 commit 98a4ee3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ rabbitmq_use_longname: 'false'
rabbitmq_logrotate_period: weekly
rabbitmq_logrotate_amount: 20

rabbitmq_amqp_port: 5672
rabbitmq_epmd_port: 4369
rabbitmq_node_port: 25672

rabbitmq_instant_queues: false
rabbitmq_instant_shovels: false

Expand Down Expand Up @@ -46,4 +50,3 @@ rabbitmq_shovels:
-
shovel_name:
shovel_json: ''

2 changes: 2 additions & 0 deletions templates/etc/default/rabbitmq-server.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
#
ulimit -n {{ rabbitmq_ulimit_open_files }}

ERL_EPMD_PORT={{ rabbitmq_epmd_port }}
RABBITMQ_NODE_PORT= {{ rabbitmq_node_port }}
3 changes: 2 additions & 1 deletion templates/etc/rabbitmq/rabbitmq.config.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[
{rabbit, [
{tcp_listeners, [{{ rabbitmq_amqp_port }}]},
{vm_memory_high_watermark, {{ rabbitmq_memory_high_watermark }}}
{% if rabbitmq_ssl %},
{%- if rabbitmq_ssl %},
{ssl_listeners, [{{ rabbitmq_ssl_port }}]},
{ssl_options, [
{% if rabbitmq_ssl_use_snakeoil_cert %}
Expand Down

0 comments on commit 98a4ee3

Please sign in to comment.