Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 65867b1

Browse files
committed
rabbitmq-run.mk: Add AMQP and management TCP ports to test_rabbitmq_config
This helps when we want to start multiple nodes on the same host with the management plugin enabled.
1 parent 7e71499 commit 65867b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mk/rabbitmq-run.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,19 @@ $(RABBITMQ_ENABLED_PLUGINS_FILE): node-tmpdir
159159
# Run a full RabbitMQ.
160160
# --------------------------------------------------------------------
161161

162+
COMMA = ,
163+
162164
define test_rabbitmq_config
163165
%% vim:ft=erlang:
164166

165167
[
166168
{rabbit, [
169+
$(if $(RABBITMQ_NODE_PORT), {listeners$(COMMA) [$(RABBITMQ_NODE_PORT)]}$(COMMA),)
167170
{loopback_users, []}
168171
]},
172+
{rabbitmq_management, [
173+
$(if $(RABBITMQ_NODE_PORT), {listener$(COMMA) [{port$(COMMA) $(shell echo "$$(($(RABBITMQ_NODE_PORT) + 10000))")}]},)
174+
]},
169175
{ra, [
170176
{data_dir, "$(RABBITMQ_QUORUM_DIR)"}
171177
]}

0 commit comments

Comments
 (0)