RabbitMQ: leave it to apps to grant access to the nagios-monitoring user
Because those vhosts may not be created yet when the main RabbitMQ playbook is run. Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
f21127ef84
commit
48de31d042
3 changed files with 32 additions and 17 deletions
|
@ -140,6 +140,22 @@
|
|||
- odcs
|
||||
- odcs/backend
|
||||
|
||||
- name: Grant the nagios-monitoring user access to the odcs vhost
|
||||
run_once: true
|
||||
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||
rabbitmq_user:
|
||||
user: nagios-monitoring
|
||||
vhost: /odcs
|
||||
configure_priv: "^$"
|
||||
read_priv: "^$"
|
||||
write_priv: "^$"
|
||||
tags: monitoring
|
||||
tags:
|
||||
- rabbitmq_cluster
|
||||
- config
|
||||
- odcs
|
||||
- odcs/backend
|
||||
|
||||
# Create a user with:
|
||||
- name: Create a user for odcs access
|
||||
run_once: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue