mirror_pagure_ansible: Use different queues for batcave01 and batcave13

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-01 14:51:56 +02:00
parent 1a234dd756
commit 2b72de8e86
2 changed files with 21 additions and 2 deletions

View file

@ -40,6 +40,14 @@
thresholds:
warning: 10
critical: 100
- role: rabbit/queue
username: "mirror_pagure_ansible{{ env_suffix }}"
queue_name: "mirror_pagure_ansible{{ env_suffix }}_13"
routing_keys:
- "io.pagure.*.pagure.git.receive"
thresholds:
warning: 10
critical: 100
- batcave
- { role: nfs/client, when: inventory_hostname.startswith('batcave'), mnt_dir: '/srv/web/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' }
- { role: nfs/client, when: inventory_hostname.startswith('batcave01'), mnt_dir: '/mnt/fedora/app', nfs_src_dir: 'fedora_app/app' }

View file

@ -8,14 +8,21 @@ callback = "mirror_from_pagure_bus:MirrorFromPagure"
# Don't use topic_prefix, since outgoing message topics are derived from incoming messages.
# topic_prefix = ""
# Note the double brackets below.
# To add another binding, add another [[bindings]] section.
{% if inventory_hostname.startswith('batcave01.') %}
[[bindings]]
queue = "mirror_pagure_ansible{{ env_suffix }}"
exchange = "amq.topic"
routing_keys = [
"io.pagure.*.pagure.git.receive",
]
{% elif inventory_hostname.startswith('batcave13.') %}
[[bindings]]
queue = "mirror_pagure_ansible{{ env_suffix }}_13"
exchange = "amq.topic"
routing_keys = [
"io.pagure.*.pagure.git.receive",
]
{% endif %}
[tls]
ca_cert = "/etc/pki/fedora-messaging/cacert.pem"
@ -27,7 +34,11 @@ app = "mirror_from_pagure"
app_url = "https://pagure.io/fedora-infra/mirror_from_pagure"
app_contacts_email = ["pingou@fedoraproject.org"]
{% if inventory_hostname.startswith('batcave01.') %}
[queues."mirror_pagure_ansible{{ env_suffix }}"]
{% elif inventory_hostname.startswith('batcave13.') %}
[queues."mirror_pagure_ansible{{ env_suffix }}_13"]
{% endif %}
durable = true
auto_delete = false
exclusive = false