RabbitMQ: create admin user
This commit is contained in:
parent
b1ead55e6f
commit
a3cac4de5b
2 changed files with 21 additions and 0 deletions
|
@ -19,6 +19,8 @@
|
|||
name: "{{item}}"
|
||||
exchange_type: topic
|
||||
vhost: /pubsub
|
||||
login_user: admin
|
||||
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||
with_items:
|
||||
- amq.topic
|
||||
- zmq.topic
|
||||
|
@ -28,6 +30,8 @@
|
|||
rabbitmq_queue:
|
||||
name: "{{item}}"
|
||||
vhost: /pubsub
|
||||
login_user: admin
|
||||
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||
with_items:
|
||||
- amqp_to_zmq
|
||||
- amqp_bridge_verify_missing
|
||||
|
@ -38,6 +42,8 @@
|
|||
source: amq.topic
|
||||
destination: amqp_to_zmq
|
||||
vhost: /pubsub
|
||||
login_user: admin
|
||||
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||
tags:
|
||||
- config
|
||||
- name: Create the verify-missing bindings
|
||||
|
@ -45,6 +51,8 @@
|
|||
source: "{{item}}"
|
||||
destination: amqp_bridge_verify_missing
|
||||
vhost: /pubsub
|
||||
login_user: admin
|
||||
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||
with_items:
|
||||
- amq.topic
|
||||
- zmq.topic
|
||||
|
|
|
@ -126,3 +126,16 @@
|
|||
tags:
|
||||
- rabbitmq_cluster
|
||||
- config
|
||||
|
||||
- name: Create the admin user for the pubsub vhost
|
||||
rabbitmq_user:
|
||||
user: admin
|
||||
password: "{{ rabbitmq_admin_password_staging }}"
|
||||
vhost: /pubsub
|
||||
configure_priv: .*
|
||||
read_priv: .*
|
||||
write_priv: .*
|
||||
when: env == "staging"
|
||||
tags:
|
||||
- rabbitmq_cluster
|
||||
- config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue