rabbitmq_cluster: Add the admin user to the public_pubsub vhost
It needs permissions to manage that vhost Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
parent
36d43c5d55
commit
73240bc64e
1 changed files with 15 additions and 4 deletions
|
@ -146,10 +146,15 @@
|
|||
rabbitmq_user:
|
||||
user: admin
|
||||
password: "{{ rabbitmq_admin_password_staging }}"
|
||||
vhost: /pubsub
|
||||
configure_priv: .*
|
||||
read_priv: .*
|
||||
write_priv: .*
|
||||
permissions:
|
||||
- vhost: /pubsub
|
||||
configure_priv: .*
|
||||
read_priv: .*
|
||||
write_priv: .*
|
||||
- vhost: /public_pubsub
|
||||
configure_priv: .*
|
||||
read_priv: .*
|
||||
write_priv: .*
|
||||
tags: management
|
||||
when: env == "staging" and inventory_hostname.startswith('rabbitmq01')
|
||||
tags:
|
||||
|
@ -200,6 +205,9 @@
|
|||
vhost: "/public_pubsub"
|
||||
login_user: admin
|
||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||
tags:
|
||||
- rabbitmq_cluster
|
||||
- config
|
||||
|
||||
# We keep them separated in /pubsub so we can bridge messages back to zmq
|
||||
- name: Forward all zmq.topic to amq.topic in the public_pubsub vhost
|
||||
|
@ -213,6 +221,9 @@
|
|||
vhost: "/public_pubsub"
|
||||
login_user: admin
|
||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||
tags:
|
||||
- rabbitmq_cluster
|
||||
- config
|
||||
|
||||
- name: Configure a policy to ensure the public vhost stays swept up and tidy
|
||||
run_once: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue