RabbitMQ: don't overwrite the admin user
Users are shared between virtualhosts. Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
4cd114788e
commit
b60803ee5c
2 changed files with 17 additions and 6 deletions
|
@ -72,7 +72,6 @@
|
||||||
configure_priv: .*
|
configure_priv: .*
|
||||||
read_priv: .*
|
read_priv: .*
|
||||||
write_priv: .*
|
write_priv: .*
|
||||||
tags: management
|
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- config
|
||||||
|
@ -87,7 +86,6 @@
|
||||||
configure_priv: "^$"
|
configure_priv: "^$"
|
||||||
read_priv: "^$"
|
read_priv: "^$"
|
||||||
write_priv: "^$"
|
write_priv: "^$"
|
||||||
tags: monitoring
|
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- config
|
||||||
|
|
|
@ -108,17 +108,16 @@
|
||||||
- odcs
|
- odcs
|
||||||
- odcs/backend
|
- odcs/backend
|
||||||
|
|
||||||
- name: Create the admin user for the odcs vhost (prod)
|
- name: Create the odcs-admin user for the odcs vhost (prod)
|
||||||
run_once: true
|
run_once: true
|
||||||
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_user:
|
rabbitmq_user:
|
||||||
user: admin
|
user: odcs-admin
|
||||||
password: "{{ (env == 'production')|ternary(rabbitmq_odcs_admin_password_production, rabbitmq_odcs_admin_password_staging) }}"
|
password: "{{ (env == 'production')|ternary(rabbitmq_odcs_admin_password_production, rabbitmq_odcs_admin_password_staging) }}"
|
||||||
vhost: /odcs
|
vhost: /odcs
|
||||||
configure_priv: .*
|
configure_priv: .*
|
||||||
read_priv: .*
|
read_priv: .*
|
||||||
write_priv: .*
|
write_priv: .*
|
||||||
tags: management
|
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- config
|
||||||
|
@ -140,6 +139,21 @@
|
||||||
- odcs
|
- odcs
|
||||||
- odcs/backend
|
- odcs/backend
|
||||||
|
|
||||||
|
- name: Grant the admin user access to the odcs vhost
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
|
rabbitmq_user:
|
||||||
|
user: admin
|
||||||
|
vhost: /odcs
|
||||||
|
configure_priv: .*
|
||||||
|
read_priv: .*
|
||||||
|
write_priv: .*
|
||||||
|
tags:
|
||||||
|
- rabbitmq_cluster
|
||||||
|
- config
|
||||||
|
- odcs
|
||||||
|
- odcs/backend
|
||||||
|
|
||||||
- name: Grant the nagios-monitoring user access to the odcs vhost
|
- name: Grant the nagios-monitoring user access to the odcs vhost
|
||||||
run_once: true
|
run_once: true
|
||||||
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
|
@ -149,7 +163,6 @@
|
||||||
configure_priv: "^$"
|
configure_priv: "^$"
|
||||||
read_priv: "^$"
|
read_priv: "^$"
|
||||||
write_priv: "^$"
|
write_priv: "^$"
|
||||||
tags: monitoring
|
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue