Koschei: create RabbitMQ queue

This commit is contained in:
Mikolaj Izdebski 2019-09-19 11:31:18 +02:00 committed by Pierre-Yves Chibon
parent 9f933fddee
commit 3ff6a8502f
3 changed files with 9 additions and 2 deletions

View file

@ -11,8 +11,13 @@
- /srv/web/infra/ansible/roles/openshift-apps/koschei/vars/{{ env }}.yml
roles:
- role: rabbit/user
- role: rabbit/queue
username: "{{ app }}{{ env_suffix }}"
queue_name: "{{ app }}{{ env_suffix }}"
routing_keys:
- org.fedoraproject.stg.buildsys.tag
- org.fedoraproject.stg.buildsys.task.state.change
message_ttl: 60000
- openshift/project

View file

@ -3,5 +3,6 @@ vhost: /pubsub
default_exchange: amq.topic
routing_keys:
- "#"
message_ttl: forever
thresholds: false
nagios_server: noc01.phx2.fedoraproject.org

View file

@ -49,6 +49,7 @@
vhost: "{{ vhost }}"
auto_delete: no
durable: yes
message_ttl: "{{ message_ttl }}"
state: present
login_user: admin
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"