-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:elastest/elastest-torm
- Loading branch information
Showing
7 changed files
with
134 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"rabbit_version": "3.7.3", | ||
"users": [ | ||
{ | ||
"name": "elastest-etm", | ||
"password": "elastest-etm", | ||
"tags": "administrator" | ||
} | ||
], | ||
"vhosts": [ | ||
{ | ||
"name": "\/elastest-etm" | ||
}, | ||
{ | ||
"name": "\/vhost2" | ||
} | ||
], | ||
"permissions": [ | ||
{ | ||
"user": "elastest-etm", | ||
"vhost": "\/elastest-etm", | ||
"configure": ".*", | ||
"write": ".*", | ||
"read": ".*" | ||
} | ||
], | ||
"parameters": [], | ||
"policies": [], | ||
"queues": [], | ||
"exchanges": [], | ||
"bindings": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,5 @@ | ||
#!/bin/sh | ||
|
||
# Create Default RabbitMQ setup | ||
( | ||
# Create users | ||
# rabbitmqctl add_user <username> <password> | ||
rabbitmqctl add_user elastest-etm elastest-etm ; \ | ||
CREATED=$?; \ | ||
rabbitmq-plugins enable rabbitmq_stomp; | ||
exec rabbitmq-server; | ||
|
||
while [ $CREATED -ne 0 ]; do | ||
echo "ET_LOG: RabbitMQ is not ready yet. Sleeping for 2s" ; \ | ||
sleep 2; \ | ||
echo "ET_LOG: Retrying to create user" ; \ | ||
rabbitmqctl add_user elastest-etm elastest-etm ; \ | ||
CREATED=$?; \ | ||
done | ||
|
||
# Set user rights | ||
# rabbitmqctl set_user_tags <username> <tag> | ||
rabbitmqctl set_user_tags elastest-etm administrator ; \ | ||
|
||
# Create vhosts | ||
# rabbitmqctl add_vhost <vhostname> | ||
echo "ET_LOG: Creating vhost" ; \ | ||
rabbitmqctl add_vhost /elastest-etm ; \ | ||
CREATED=$?; \ | ||
|
||
while [ $CREATED -ne 0 ]; do | ||
echo "ET_LOG: Error on create vhost. Sleeping for 2s" ; \ | ||
sleep 2; \ | ||
echo "ET_LOG: Retrying to create vhost" ; \ | ||
rabbitmqctl add_vhost /elastest-etm ; \ | ||
CREATED=$?; \ | ||
done | ||
|
||
# Set vhost permissions | ||
# rabbitmqctl set_permissions -p <vhostname> <username> ".*" ".*" ".*" | ||
rabbitmqctl set_permissions -p /elastest-etm elastest-etm ".*" ".*" ".*" ; \ | ||
|
||
rabbitmq-plugins enable rabbitmq_stomp; \ | ||
) & | ||
rabbitmq-server $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{rabbit, [ | ||
{loopback_users, []} | ||
]}, | ||
{rabbitmq_management, [ | ||
{load_definitions, "/etc/rabbitmq/definitions.json"} | ||
]} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters