openqa: tweak rabbit user creation stuff...

ugh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-06-21 12:25:21 +02:00
parent 085e6e0828
commit 31f4668476

View file

@ -43,15 +43,24 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
# we must always make sure both prod and stg users exist, as stg
# we must always make sure the prod user exists, as stg
# must listen on prod in several cases so uses the prod user
- role: rabbit/user
username: "{{ openqa_amqp_prod_username }}"
sent_topics: ^org\.fedoraproject\.prod\.(openqa|ci)\..*
vars:
env: "production"
env_suffix: ""
tags: ['rabbit']
- role: rabbit/user
username: "{{ openqa_amqp_stg_username }}"
sent_topics: ^org\.fedoraproject\.stg\.(openqa|ci)\..*
vars:
env: "staging"
env_suffix: "stg"
tags: ['rabbit']
when: "deployment_type == 'stg'"
- role: rabbit/queue
queue_name: "{{ openqa_amqp_scheduler_queue }}"