Skip to content
Snippets Groups Projects
Commit 9085ec38 authored by Laurens Oostwegel's avatar Laurens Oostwegel
Browse files

Add VHOSTS variable to enable multiple queues

parent 48a5d68f
No related branches found
No related tags found
1 merge request!8Add VHOSTS variable to enable multiple queues
......@@ -12,7 +12,12 @@ rabbitmqctl add_user "$RABOTNIK_MESSAGE_BUS_USER" "$RABOTNIK_MESSAGE_BUS_PASSWOR
rabbitmqctl set_user_tags "$RABOTNIK_MESSAGE_BUS_USER" administrator ; \
rabbitmqctl set_permissions -p / "$RABOTNIK_MESSAGE_BUS_USER" ".*" ".*" ".*" ; \
echo "*** User '$RABOTNIK_MESSAGE_BUS_USER' with password '$RABOTNIK_MESSAGE_BUS_PASSWORD' completed. ***" ; \
echo "*** Log in the WebUI at port 15672 (example: http://localhost:15672) ***") &
echo "*** Log in the WebUI at port 15672 (example: http://localhost:15672) ***";
for v in $RABOTNIK_MESSAGE_BUS_VHOSTS; do \
rabbitmqctl add_vhost $v; \
rabbitmqctl set_permissions -p $v "$RABOTNIK_MESSAGE_BUS_USER" ".*" ".*" ".*"; \
echo "*** Created vhosts '$v' ***"; \
done) &
rabbitmq-plugins enable rabbitmq_mqtt
# $@ is used to pass arguments to the rabbitmq-server command.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment