sent_topics can't be a list, it has to be a single regexp

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2022-07-07 09:09:07 +02:00
parent 60c63ef0d3
commit d083b291d3
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
48 changed files with 59 additions and 117 deletions

View file

@ -46,8 +46,7 @@ messaging:
- app_name: Copr build system - app_name: Copr build system
key: copr key: copr
username: copr username: copr
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.copr\..*
- ^org\.fedoraproject\.{{ env_short }}\.copr\..*
nrpe_procs_crit: 2500 nrpe_procs_crit: 2500
nrpe_procs_warn: 2200 nrpe_procs_warn: 2200
root_auth_users: msuchy pingou frostyx praiskup root_auth_users: msuchy pingou frostyx praiskup

View file

@ -40,8 +40,7 @@ messaging:
- app_name: Copr build system - app_name: Copr build system
key: copr key: copr
username: copr username: copr
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.copr\..*
- ^org\.fedoraproject\.{{ env_short }}\.copr\..*
root_auth_users: msuchy pingou frostyx praiskup root_auth_users: msuchy pingou frostyx praiskup
spawn_in_advance: "false" spawn_in_advance: "false"
tcp_ports: [ tcp_ports: [

View file

@ -61,8 +61,7 @@ primary_auth_source: ipa
tcp_ports: [80] tcp_ports: [80]
# for fedora-messaging # for fedora-messaging
username: "github2fedmsg{{ env_suffix }}" username: "github2fedmsg{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.github\..*
- ^org\.fedoraproject\.{{ env_short }}\.github\..*
# Definining these vars has a number of effects # Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup # 1) mod_wsgi is configured to use the vars for its own setup
# 2) iptables opens enough ports for all threads for fedmsg # 2) iptables opens enough ports for all threads for fedmsg

View file

@ -60,8 +60,7 @@ num_cpus: 1
tcp_ports: [80] tcp_ports: [80]
# for fedora-messaging # for fedora-messaging
username: "github2fedmsg{{ env_suffix }}" username: "github2fedmsg{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.github\..*
- ^org\.fedoraproject\.{{ env_short }}\.github\..*
# Definining these vars has a number of effects # Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup # 1) mod_wsgi is configured to use the vars for its own setup
# 2) iptables opens enough ports for all threads for fedmsg # 2) iptables opens enough ports for all threads for fedmsg

View file

@ -21,8 +21,7 @@ messaging:
- app_name: Copr build system - app_name: Copr build system
key: copr key: copr
username: copr username: copr
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.copr\..*
- ^org\.fedoraproject\.{{ env_short }}\.copr\..*
# There is no python2 on F30 # There is no python2 on F30
nagios_Check_Services: nagios_Check_Services:
dhcpd: false dhcpd: false

View file

@ -21,8 +21,7 @@ messaging:
- app_name: Copr build system - app_name: Copr build system
key: copr key: copr
username: copr username: copr
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.copr\..*
- ^org\.fedoraproject\.{{ env_short }}\.copr\..*
nagios_Check_Services: nagios_Check_Services:
dhcpd: false dhcpd: false
httpd: false httpd: false

View file

@ -31,11 +31,7 @@
SSLCertificateChainFile: "{{wildcard_int_file}}" SSLCertificateChainFile: "{{wildcard_int_file}}"
- role: rabbit/user - role: rabbit/user
username: "batcave{{ env_suffix }}" username: "batcave{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(ansible|git|infragit|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.ansible\..*
- ^org\.fedoraproject\.{{ env_short }}\.git\..*
- ^org\.fedoraproject\.{{ env_short }}\.infragit\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
- role: rabbit/queue - role: rabbit/queue
username: "mirror_pagure_ansible{{ env_suffix }}" username: "mirror_pagure_ansible{{ env_suffix }}"
queue_name: "mirror_pagure_ansible{{ env_suffix }}" queue_name: "mirror_pagure_ansible{{ env_suffix }}"
@ -44,8 +40,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^$
- ^$
- role: rabbit/queue - role: rabbit/queue
username: "mirror_pagure_ansible{{ env_suffix }}" username: "mirror_pagure_ansible{{ env_suffix }}"
queue_name: "mirror_pagure_ansible{{ env_suffix }}_13" queue_name: "mirror_pagure_ansible{{ env_suffix }}_13"
@ -54,8 +49,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^$
- ^$
when: datacenter != 'iad2' when: datacenter != 'iad2'
- batcave - batcave
- role: grobisplitter - role: grobisplitter

View file

@ -99,8 +99,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.bodhi\..*
- ^org\.fedoraproject\.{{ env_short }}\.bodhi\..*
- role: rabbit/queue - role: rabbit/queue
username: "bodhi{{ env_suffix }}" username: "bodhi{{ env_suffix }}"

View file

@ -118,8 +118,7 @@
- sudo - sudo
- role: rabbit/user - role: rabbit/user
username: "koji{{ env_suffix }}" username: "koji{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.buildsys\..*
- ^org\.fedoraproject\.{{ env_short }}\.buildsys\..*
tasks: tasks:
- import_tasks: "{{ tasks_path }}/motd.yml" - import_tasks: "{{ tasks_path }}/motd.yml"

View file

@ -31,8 +31,7 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "logging{{ env_suffix }}" username: "logging{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.logging\.stats\..*
- ^org\.fedoraproject\.{{ env_short }}\.logging\.stats\..*
- logging - logging
pre_tasks: pre_tasks:

View file

@ -101,8 +101,7 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "mailman{{ env_suffix }}" username: "mailman{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.mailman\..*
- ^org\.fedoraproject\.{{ env_short }}\.mailman\..*
tasks: tasks:
- name: install more needed packages - name: install more needed packages

View file

@ -104,9 +104,7 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "mirrormanager{{ env_suffix }}" username: "mirrormanager{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(mirrormanager|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.mirrormanager\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
handlers: handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml" - import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -38,9 +38,7 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "notifs-backend{{ env_suffix }}" username: "notifs-backend{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(fmn|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.fmn\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
- sudo - sudo
tasks: tasks:

View file

@ -29,9 +29,7 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "notifs-web{{ env_suffix }}" username: "notifs-web{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(fmn|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.fmn\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
- notifs/frontend - notifs/frontend
- sudo - sudo

View file

@ -44,8 +44,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "odcs{{ env_suffix }}" username: "odcs{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.odcs\..*
- ^org\.fedoraproject\.{{ env_short }}\.odcs\..*
- mod_wsgi - mod_wsgi
- role: nfs/client - role: nfs/client
mnt_dir: '/mnt/fedora_koji' mnt_dir: '/mnt/fedora_koji'
@ -153,8 +152,7 @@
thresholds: thresholds:
warning: 100 warning: 100
critical: 1000 critical: 1000
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.odcs\..*
- ^org\.fedoraproject\.{{ env_short }}\.odcs\..*
- role: fmc - role: fmc
handlers: handlers:

View file

@ -47,8 +47,6 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "pdc{{ env_suffix }}" username: "pdc{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(pdc|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.pdc\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
when: inventory_hostname.startswith(('pdc-web01','pdc-web01.stg')) when: inventory_hostname.startswith(('pdc-web01','pdc-web01.stg'))
- pdc/frontend - pdc/frontend

View file

@ -75,9 +75,7 @@
- git/server - git/server
- role: rabbit/user - role: rabbit/user
username: "planet{{ env_suffix }}" username: "planet{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(planet|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.planet\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
- role: apache - role: apache

View file

@ -82,10 +82,7 @@
# Set up for fedora-messaging # Set up for fedora-messaging
- role: rabbit/user - role: rabbit/user
username: "pagure{{ env_suffix }}" username: "pagure{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(pagure|git|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.pagure\..*
- ^org\.fedoraproject\.{{ env_short }}\.git\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
handlers: handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml" - import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -130,10 +130,7 @@
- role: rabbit/user - role: rabbit/user
username: "pungi{{ env_suffix }}" username: "pungi{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(pungi|compose|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
- ^org\.fedoraproject\.{{ env_short }}\.pungi\..*
- ^org\.fedoraproject\.{{ env_short }}\.compose\..*
- { - {
role: "push-container-registry", role: "push-container-registry",

View file

@ -46,8 +46,7 @@
- "org.fedoraproject.*.faf.problem.threshold10000" - "org.fedoraproject.*.faf.problem.threshold10000"
- "org.fedoraproject.*.faf.problem.threshold100000" - "org.fedoraproject.*.faf.problem.threshold100000"
- "org.fedoraproject.*.faf.problem.threshold1000000" - "org.fedoraproject.*.faf.problem.threshold1000000"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.faf\..*
- ^org\.fedoraproject\.{{ env_short }}\.faf\..*
- name: Setup retrace hosts - name: Setup retrace hosts
hosts: retrace,retrace_stg hosts: retrace,retrace_stg

View file

@ -57,8 +57,7 @@
when: master_sundries_node|bool when: master_sundries_node|bool
- role: rabbit/user - role: rabbit/user
username: "sundries{{ env_suffix }}" username: "sundries{{ env_suffix }}"
sent_topics: sent_topics: ^$
- ^$
when: master_sundries_node|bool and deployment_type == "stg" when: master_sundries_node|bool and deployment_type == "stg"
- role: fedmsg/base - role: fedmsg/base
when: master_sundries_node|bool when: master_sundries_node|bool

View file

@ -33,9 +33,7 @@
- role: rabbit/queue - role: rabbit/queue
username: "wiki{{ env_suffix }}" username: "wiki{{ env_suffix }}"
queue_name: "wiki{{ env_suffix }}" queue_name: "wiki{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(wiki|logger\.log)\..*
- ^org\.fedoraproject\.{{ env_short }}\.wiki\..*
- ^org\.fedoraproject\.{{ env_short }}\.logger\.log\..*
when: inventory_hostname.startswith('wiki01') when: inventory_hostname.startswith('wiki01')
- { role: nfs/client, when: env == "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app_staging/app/attachments' } - { role: nfs/client, when: env == "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app_staging/app/attachments' }
- { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' } - { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' }

View file

@ -67,9 +67,7 @@
- "org.fedoraproject.*.coreos.build.request.artifacts-sign" - "org.fedoraproject.*.coreos.build.request.artifacts-sign"
- "org.fedoraproject.*.coreos.build.request.ostree-sign" - "org.fedoraproject.*.coreos.build.request.ostree-sign"
- "org.fedoraproject.*.buildsys.tag" - "org.fedoraproject.*.buildsys.tag"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(robosignatory|coreos)\..*\.finished$
- ^org\.fedoraproject\.{{ env_short }}\.coreos\..*\.finished$
- ^org\.fedoraproject\.{{ env_short }}\.robosignatory\..*\.finished$
- robosignatory - robosignatory
- role: keytab/service - role: keytab/service
service: autosign service: autosign

View file

@ -32,8 +32,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.bodhi\..*
- ^org\.fedoraproject\.{{ env_short }}\.bodhi\..*
- role: openshift/project - role: openshift/project
app: bodhi app: bodhi

View file

@ -12,8 +12,7 @@
- role: rabbit/user - role: rabbit/user
username: "bugzilla2fedmsg{{ env_suffix }}" username: "bugzilla2fedmsg{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.bugzilla\..*
- ^org\.fedoraproject\.{{ env_short }}\.bugzilla\..*
- role: openshift/project - role: openshift/project
app: bugzilla2fedmsg app: bugzilla2fedmsg

View file

@ -43,8 +43,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.coreos\..*
- ^org\.fedoraproject\.{{ env_short }}\.coreos\..*
# Fedora Messaging secrets # Fedora Messaging secrets
- role: openshift/secret-file - role: openshift/secret-file

View file

@ -18,8 +18,7 @@
warning: 50 warning: 50
critical: 500 critical: 500
# Datanommer does not publish messages # Datanommer does not publish messages
sent_topics: sent_topics: ^$
- "^$"
- role: openshift/project - role: openshift/project
app: datanommer app: datanommer

View file

@ -11,8 +11,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "discourse2fedmsg{{ env_suffix }}" username: "discourse2fedmsg{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.discourse\..*
- ^org\.fedoraproject\.{{ env_short }}\.discourse\..*
- role: openshift/project - role: openshift/project
app: discourse2fedmsg app: discourse2fedmsg

View file

@ -33,8 +33,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "elections{{ env_suffix }}" username: "elections{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.fedora_elections\..*
- ^org\.fedoraproject\.{{ env_short }}\.fedora_elections\..*
- role: openshift/project - role: openshift/project
app: elections app: elections

View file

@ -11,8 +11,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "fedocal{{ env_suffix }}" username: "fedocal{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.fedocal\..*
- ^org\.fedoraproject\.{{ env_short }}\.fedocal\..*
- role: openshift/project - role: openshift/project
app: fedocal app: fedocal

View file

@ -19,8 +19,7 @@
thresholds: thresholds:
warning: 50 warning: 50
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.greenwave\..*
- ^org\.fedoraproject\.{{ env_short }}\.greenwave\..*
# The openshift/project role breaks if the project already exists: # The openshift/project role breaks if the project already exists:
# https://pagure.io/fedora-infrastructure/issue/6404 # https://pagure.io/fedora-infrastructure/issue/6404

View file

@ -16,9 +16,7 @@
queue_name: "{{ app }}{{ env_suffix }}" queue_name: "{{ app }}{{ env_suffix }}"
routing_keys: [] routing_keys: []
message_ttl: 60000 message_ttl: 60000
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(koschei|ci)\..*
- ^org\.fedoraproject\.{{ env_short }}\.koschei\..*
- ^org\.fedoraproject\.{{ env_short }}\.ci\..*
- openshift/project - openshift/project

View file

@ -45,8 +45,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.build\.tag\..*
- ^org\.fedoraproject\.{{ env_short }}\.build\.tag\..*
# cacert, certificate and private key for fedora-messaging # cacert, certificate and private key for fedora-messaging

View file

@ -26,8 +26,7 @@
- role: rabbit/user - role: rabbit/user
username: "monitor-gating{{ env_suffix }}" username: "monitor-gating{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.monitor-gating\..*
- ^org\.fedoraproject\.{{ env_short }}\.monitor-gating\..*
- role: openshift/keytab - role: openshift/keytab
app: monitor-gating app: monitor-gating

View file

@ -13,8 +13,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "noggin{{ env_suffix }}" username: "noggin{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.fas\..*
- ^org\.fedoraproject\.{{ env_short }}\.fas\..*
- role: openshift/project - role: openshift/project
app: noggin-centos app: noggin-centos

View file

@ -13,8 +13,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "noggin{{ env_suffix }}" username: "noggin{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.fas\..*
- ^org\.fedoraproject\.{{ env_short }}\.fas\..*
- role: openshift/project - role: openshift/project
app: noggin app: noggin

View file

@ -13,8 +13,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "anitya{{ env_suffix }}" username: "anitya{{ env_suffix }}"
sent_topics: sent_topics: ^org\.release-monitoring\.{{ env_short }}\.anitya\..*
- ^org\.release-monitoring\.{{ env_short }}\.anitya\..*
- role: openshift/project - role: openshift/project
app: release-monitoring app: release-monitoring
description: release-monitoring description: release-monitoring

View file

@ -22,8 +22,7 @@
- 'org.centos.*.ci.koji-build.test.running' - 'org.centos.*.ci.koji-build.test.running'
- 'org.centos.*.ci.koji-build.test.complete' - 'org.centos.*.ci.koji-build.test.complete'
- 'org.centos.*.ci.koji-build.test.error' - 'org.centos.*.ci.koji-build.test.error'
sent_topics: sent_topics: ^$
- ^$
# The openshift/project role breaks if the project already exists: # The openshift/project role breaks if the project already exists:
# https://pagure.io/fedora-infrastructure/issue/6404 # https://pagure.io/fedora-infrastructure/issue/6404

View file

@ -40,8 +40,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "resultsdb{{ env_suffix }}" username: "resultsdb{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.resultsdb\..*
- ^org\.fedoraproject\.{{ env_short }}\.resultsdb\..*
# The openshift/project role breaks if the project already exists: # The openshift/project role breaks if the project already exists:
# https://pagure.io/fedora-infrastructure/issue/6404 # https://pagure.io/fedora-infrastructure/issue/6404

View file

@ -20,8 +20,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.hotness\..*
- ^org\.fedoraproject\.{{ env_short }}\.hotness\..*
- role: openshift/project - role: openshift/project
app: the-new-hotness app: the-new-hotness

View file

@ -53,8 +53,7 @@
thresholds: thresholds:
warning: 10 warning: 10
critical: 100 critical: 100
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.toddlers\..*
- ^org\.fedoraproject\.{{ env_short }}\.toddlers\..*
- role: openshift/keytab - role: openshift/keytab
app: toddlers app: toddlers

View file

@ -39,8 +39,7 @@
roles: roles:
- role: rabbit/user - role: rabbit/user
username: "waiverdb{{ env_suffix }}" username: "waiverdb{{ env_suffix }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.waiverdb\..*
- ^org\.fedoraproject\.{{ env_short }}\.waiverdb\..*
# The openshift/project role breaks if the project already exists: # The openshift/project role breaks if the project already exists:
# https://pagure.io/fedora-infrastructure/issue/6404 # https://pagure.io/fedora-infrastructure/issue/6404

View file

@ -7,4 +7,4 @@ thresholds:
warning: 10000 warning: 10000
critical: 100000 critical: 100000
nagios_server: noc01.iad2.fedoraproject.org nagios_server: noc01.iad2.fedoraproject.org
sent_topics: [] sent_topics: null

View file

@ -43,12 +43,14 @@
- name: Prepare the topic permissions dict - name: Prepare the topic permissions dict
set_fact: set_fact:
topic_permissions: "{{ topic_permissions|default([]) + [{'vhost': vhost, 'read_priv': '.*', 'write_priv': item}] }}" topic_permissions:
loop: "{{ sent_topics }}" - vhost: vhost
read_priv: .*
write_priv: sent_topics
tags: tags:
- fedora-messaging - fedora-messaging
- rabbitmq_cluster - rabbitmq_cluster
when: env == "staging" when: env == "staging" and sent_topics
- debug: - debug:
msg: "Topic permissions: {{ topic_permissions|default([]) }}" msg: "Topic permissions: {{ topic_permissions|default([]) }}"

View file

@ -1,3 +1,3 @@
rabbitmq_server: "rabbitmq01{{ env_suffix }}.iad2.fedoraproject.org" rabbitmq_server: "rabbitmq01{{ env_suffix }}.iad2.fedoraproject.org"
vhost: /pubsub vhost: /pubsub
sent_topics: [] sent_topics: null

View file

@ -26,13 +26,15 @@
- name: Prepare the topic permissions dict - name: Prepare the topic permissions dict
set_fact: set_fact:
topic_permissions: "{{ topic_permissions|default([]) + [{'vhost': vhost, 'read_priv': '.*', 'write_priv': item}] }}" topic_permissions:
loop: "{{ sent_topics }}" - vhost: vhost
read_priv: .*
write_priv: sent_topics
tags: tags:
- config - config
- fedora-messaging - fedora-messaging
- rabbitmq_cluster - rabbitmq_cluster
when: env == "staging" when: env == "staging" and sent_topics
- debug: - debug:
msg: "Topic permissions: {{ topic_permissions|default([]) }}" msg: "Topic permissions: {{ topic_permissions|default([]) }}"

View file

@ -70,8 +70,7 @@
name: rabbit/user name: rabbit/user
vars: vars:
username: copr{{ env_suffix }} username: copr{{ env_suffix }}
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.copr\..*
- ^org\.fedoraproject\.{{ env_short }}\.copr\..*
- name: CentOS Stream - name: CentOS Stream
run_once: true run_once: true

View file

@ -104,8 +104,7 @@
name: rabbit/user name: rabbit/user
vars: vars:
username: "{{ botnames[env] }}" username: "{{ botnames[env] }}"
sent_topics: sent_topics: ^org\.fedoraproject\.{{ env_short }}\.meetbot\..*
- ^org\.fedoraproject\.{{ env_short }}\.meetbot\..*
when: when:
- inventory_hostname.startswith('value02') - inventory_hostname.startswith('value02')