Skip to content

Deployment to various CD/CD environments with alterating default user and password #659

Answered by lukebakken
v-bulynkin asked this question in Q&A
Discussion options

You must be logged in to vote

OK, when you are booting a fresh node, the definitions file import will cause RabbitMQ to ignore the default_user and default_pass settings:

https://www.rabbitmq.com/definitions.html#import-on-boot-nuances

Or perhaps split definitions.json into 2 parts - one will be in the project and contain queues and similar stuff and the second in Gitlab CI/CD file variables and contains only users/permissions/policies?

This is a good solution. Please see this repository for a full working example:

https://github.com/lukebakken/docker-library_rabbitmq-659

Running this command will start RabbitMQ with the admin-DEV user:

make BUILD_ENV=DEV up

...while this will create admin-PROD:

make BUILD_ENV=PROD…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@v-bulynkin
Comment options

@lukebakken
Comment options

@lukebakken
Comment options

Answer selected by lukebakken
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants