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}}"
|
name: "{{item}}"
|
||||||
exchange_type: topic
|
exchange_type: topic
|
||||||
vhost: /pubsub
|
vhost: /pubsub
|
||||||
|
login_user: admin
|
||||||
|
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||||
with_items:
|
with_items:
|
||||||
- amq.topic
|
- amq.topic
|
||||||
- zmq.topic
|
- zmq.topic
|
||||||
|
@ -28,6 +30,8 @@
|
||||||
rabbitmq_queue:
|
rabbitmq_queue:
|
||||||
name: "{{item}}"
|
name: "{{item}}"
|
||||||
vhost: /pubsub
|
vhost: /pubsub
|
||||||
|
login_user: admin
|
||||||
|
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||||
with_items:
|
with_items:
|
||||||
- amqp_to_zmq
|
- amqp_to_zmq
|
||||||
- amqp_bridge_verify_missing
|
- amqp_bridge_verify_missing
|
||||||
|
@ -38,6 +42,8 @@
|
||||||
source: amq.topic
|
source: amq.topic
|
||||||
destination: amqp_to_zmq
|
destination: amqp_to_zmq
|
||||||
vhost: /pubsub
|
vhost: /pubsub
|
||||||
|
login_user: admin
|
||||||
|
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- name: Create the verify-missing bindings
|
- name: Create the verify-missing bindings
|
||||||
|
@ -45,6 +51,8 @@
|
||||||
source: "{{item}}"
|
source: "{{item}}"
|
||||||
destination: amqp_bridge_verify_missing
|
destination: amqp_bridge_verify_missing
|
||||||
vhost: /pubsub
|
vhost: /pubsub
|
||||||
|
login_user: admin
|
||||||
|
login_password: "{{ rabbitmq_admin_password_staging }}"
|
||||||
with_items:
|
with_items:
|
||||||
- amq.topic
|
- amq.topic
|
||||||
- zmq.topic
|
- zmq.topic
|
||||||
|
|
|
@ -126,3 +126,16 @@
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- 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