-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from teufelaudio/task/WEBDEV-9814-make-rabbitmq…
…-configurable Make RabbitMQ Configurable
- Loading branch information
Showing
15 changed files
with
135 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tmp-test |
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,6 @@ | ||
{ | ||
"inviqa/spryker": { | ||
"vx.x.x": { | ||
} | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"inviqa/spryker": { | ||
"vx.x.x": { | ||
} | ||
} | ||
} |
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,36 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
export path_test=".ci/tmp-test" | ||
|
||
function setup() | ||
( | ||
local mode="$1" | ||
|
||
if [ -d "${path_test}" ]; then | ||
rm -rf "${path_test}" | ||
fi | ||
|
||
cp -ap ".ci/sample-${mode}" "${path_test}" | ||
rsync --archive --exclude="**/.git" --exclude="**/.ci" ./ "${path_test}/.my127ws/" | ||
) | ||
|
||
function prepare_environment() | ||
( | ||
cd "${path_test}" | ||
ws harness prepare | ||
) | ||
|
||
function main() | ||
{ | ||
local mode="$1" | ||
|
||
setup "$mode" | ||
prepare_environment | ||
} | ||
|
||
main "$@" |
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
39 changes: 39 additions & 0 deletions
39
docker/image/rabbitmq/root/etc/rabbitmq/definitions.json.twig
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,39 @@ | ||
{% spaceless %} | ||
{% set vhosts = [] %} | ||
{% for vhost in @('rabbitmq.vhosts') %} | ||
{% set vhosts = vhosts | merge([{"name": vhost,"metadata": {"description": "","tags": []}, "limits": []}]) %} | ||
{% endfor %} | ||
{% set users = [] %} | ||
{% set permissions = [] %} | ||
{% for user in @('rabbitmq.users') %} | ||
{% set users = users | merge([{ | ||
"hashing_algorithm": "rabbit_password_hashing_sha256", | ||
"name": user.username, | ||
"password_hash": user.password_hash, | ||
"tags": user.tags | ||
}]) %} | ||
{% for permission in user.permissions %} | ||
{% set permissions = permissions | merge([{ | ||
"configure": permission.configure, | ||
"read": permission.read, | ||
"user": user.username, | ||
"vhost": permission.vhost, | ||
"write": permission.write | ||
}]) %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endspaceless %} | ||
{ | ||
"bindings": [], | ||
"exchanges": [], | ||
"global_parameters": [], | ||
"parameters": [], | ||
"permissions": {{ permissions | json_encode(constant('JSON_UNESCAPED_SLASHES')) }}, | ||
"policies": [], | ||
"queues": [], | ||
"rabbit_version": "{{ @('rabbitmq.version') }}", | ||
"rabbitmq_version": "{{ @('rabbitmq.version') }}", | ||
"topic_permissions": [], | ||
"users": {{ users | json_encode(constant('JSON_UNESCAPED_SLASHES')) }}, | ||
"vhosts": {{ vhosts | json_encode(constant('JSON_UNESCAPED_SLASHES')) }} | ||
} |
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 @@ | ||
[rabbitmq_management,rabbitmq_stream_management]. |
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
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