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:
Aurélien Bompard 2020-02-14 11:22:44 +01:00 committed by Pierre-Yves Chibon
parent f21127ef84
commit 48de31d042
3 changed files with 32 additions and 17 deletions

View file

@ -225,14 +225,6 @@
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: /bodhi
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: /odcs
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
tags: monitoring
when: env == "staging" and inventory_hostname.startswith('rabbitmq01')
tags:
@ -257,14 +249,6 @@
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: /bodhi
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: /odcs
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
tags: monitoring
when: env == "production" and inventory_hostname.startswith('rabbitmq01')
tags: