forked from infra/ansible
ELNBuildSync: support staging RabbitMQ
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
This commit is contained in:
parent
6236fc9d67
commit
377e504d21
4 changed files with 126 additions and 123 deletions
|
|
@ -31,25 +31,32 @@
|
|||
- /srv/private/ansible/vars.yml
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
pre_tasks:
|
||||
- name: Set up ELN RabbitMQ queue
|
||||
ansible.builtin.include_role:
|
||||
name: rabbit/queue
|
||||
vars:
|
||||
queue_username: distrobuildsync-eln
|
||||
user_sent_topics: ^$
|
||||
queue_name: distrobuildsync-eln
|
||||
# TTL: 10 days (in miliseconds)
|
||||
queue_message_ttl: 864000000
|
||||
queue_routing_keys:
|
||||
- "#.buildsys.repo.init"
|
||||
- "#.buildsys.repo.done"
|
||||
- "#.buildsys.tag"
|
||||
- "#.buildsys.task.state.change"
|
||||
- "org.fedoraproject.{{ env_short }}.elnbuildsync.#"
|
||||
when: env != 'staging'
|
||||
|
||||
roles:
|
||||
- role: rabbit/user
|
||||
user_name: "elnbuildsync{{ env_suffix }}"
|
||||
user_sent_topics: ^$
|
||||
tags:
|
||||
- config
|
||||
- fedora-messaging
|
||||
- rabbitmq_cluster
|
||||
|
||||
- role: rabbit/queue
|
||||
queue_username: "elnbuildsync{{ env_suffix }}"
|
||||
user_sent_topics: ^$
|
||||
queue_name: "elnbuildsync{{ env_suffix }}"
|
||||
# TTL: 10 days (in miliseconds)
|
||||
queue_message_ttl: 864000000
|
||||
queue_routing_keys:
|
||||
- "#.buildsys.repo.init"
|
||||
- "#.buildsys.repo.done"
|
||||
- "#.buildsys.tag"
|
||||
- "#.buildsys.task.state.change"
|
||||
- "org.fedoraproject.{{ env_short }}.elnbuildsync.#"
|
||||
tags:
|
||||
- config
|
||||
- fedora-messaging
|
||||
- rabbitmq_cluster
|
||||
|
||||
- role: openshift/project
|
||||
project_app: elnbuildsync
|
||||
project_description: ELNBuildSync is a tool that listens for Fedora Rawhide builds and re-builds them in the Fedora ELN build environment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue