mirror_pagure_ansible: Use different queues for batcave01 and batcave13
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
1a234dd756
commit
2b72de8e86
2 changed files with 21 additions and 2 deletions
|
@ -40,6 +40,14 @@
|
||||||
thresholds:
|
thresholds:
|
||||||
warning: 10
|
warning: 10
|
||||||
critical: 100
|
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
|
- 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('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' }
|
- { role: nfs/client, when: inventory_hostname.startswith('batcave01'), mnt_dir: '/mnt/fedora/app', nfs_src_dir: 'fedora_app/app' }
|
||||||
|
|
|
@ -8,14 +8,21 @@ callback = "mirror_from_pagure_bus:MirrorFromPagure"
|
||||||
# Don't use topic_prefix, since outgoing message topics are derived from incoming messages.
|
# Don't use topic_prefix, since outgoing message topics are derived from incoming messages.
|
||||||
# topic_prefix = ""
|
# topic_prefix = ""
|
||||||
|
|
||||||
# Note the double brackets below.
|
{% if inventory_hostname.startswith('batcave01.') %}
|
||||||
# To add another binding, add another [[bindings]] section.
|
|
||||||
[[bindings]]
|
[[bindings]]
|
||||||
queue = "mirror_pagure_ansible{{ env_suffix }}"
|
queue = "mirror_pagure_ansible{{ env_suffix }}"
|
||||||
exchange = "amq.topic"
|
exchange = "amq.topic"
|
||||||
routing_keys = [
|
routing_keys = [
|
||||||
"io.pagure.*.pagure.git.receive",
|
"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]
|
[tls]
|
||||||
ca_cert = "/etc/pki/fedora-messaging/cacert.pem"
|
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_url = "https://pagure.io/fedora-infra/mirror_from_pagure"
|
||||||
app_contacts_email = ["pingou@fedoraproject.org"]
|
app_contacts_email = ["pingou@fedoraproject.org"]
|
||||||
|
|
||||||
|
{% if inventory_hostname.startswith('batcave01.') %}
|
||||||
[queues."mirror_pagure_ansible{{ env_suffix }}"]
|
[queues."mirror_pagure_ansible{{ env_suffix }}"]
|
||||||
|
{% elif inventory_hostname.startswith('batcave13.') %}
|
||||||
|
[queues."mirror_pagure_ansible{{ env_suffix }}_13"]
|
||||||
|
{% endif %}
|
||||||
durable = true
|
durable = true
|
||||||
auto_delete = false
|
auto_delete = false
|
||||||
exclusive = false
|
exclusive = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue