From 15982bb9ae44613de6c20e1837a131fe326fb833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Thu, 23 Jun 2022 18:40:18 +0200 Subject: [PATCH] Add topic permissions for more apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- playbooks/groups/batcave.yml | 3 +++ playbooks/groups/people.yml | 2 ++ playbooks/groups/pkgs.yml | 2 ++ playbooks/openshift-apps/fedocal.yml | 2 ++ playbooks/openshift-apps/mdapi.yml | 2 ++ playbooks/openshift-apps/release-monitoring.yml | 2 ++ playbooks/openshift-apps/the-new-hotness.yml | 2 ++ 7 files changed, 15 insertions(+) diff --git a/playbooks/groups/batcave.yml b/playbooks/groups/batcave.yml index 7e85f770de..87cb8e4984 100644 --- a/playbooks/groups/batcave.yml +++ b/playbooks/groups/batcave.yml @@ -33,6 +33,9 @@ username: "mirror_pagure_ansible{{ env_suffix }}" - role: rabbit/user username: "batcave{{ env_suffix }}" + sent_topics: + - ^org\.fedoraproject\.{{ env_short }}\.ansible\..* + - ^org\.fedoraproject\.{{ env_short }}\.git\..* - role: rabbit/queue username: "mirror_pagure_ansible{{ env_suffix }}" queue_name: "mirror_pagure_ansible{{ env_suffix }}" diff --git a/playbooks/groups/people.yml b/playbooks/groups/people.yml index 8ab6039a47..978711bba7 100644 --- a/playbooks/groups/people.yml +++ b/playbooks/groups/people.yml @@ -75,6 +75,8 @@ - git/server - role: rabbit/user username: "planet{{ env_suffix }}" + sent_topics: + - ^org\.fedoraproject\.{{ env_short }}\.planet\..* - role: apache diff --git a/playbooks/groups/pkgs.yml b/playbooks/groups/pkgs.yml index 47eb586eb4..f47555dfb9 100644 --- a/playbooks/groups/pkgs.yml +++ b/playbooks/groups/pkgs.yml @@ -82,6 +82,8 @@ # Set up for fedora-messaging - role: rabbit/user username: "pagure{{ env_suffix }}" + sent_topics: + - ^org\.fedoraproject\.{{ env_short }}\.pagure\..* handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml" diff --git a/playbooks/openshift-apps/fedocal.yml b/playbooks/openshift-apps/fedocal.yml index e798fbacbb..3660ee7fbe 100644 --- a/playbooks/openshift-apps/fedocal.yml +++ b/playbooks/openshift-apps/fedocal.yml @@ -11,6 +11,8 @@ roles: - role: rabbit/user username: "fedocal{{ env_suffix }}" + sent_topics: + - ^org\.fedoraproject\.{{ env_short }}\.fedocal\..* - role: openshift/project app: fedocal diff --git a/playbooks/openshift-apps/mdapi.yml b/playbooks/openshift-apps/mdapi.yml index 4a79855cae..1f2ba4229a 100644 --- a/playbooks/openshift-apps/mdapi.yml +++ b/playbooks/openshift-apps/mdapi.yml @@ -11,6 +11,8 @@ roles: - role: rabbit/user username: "mdapi{{ env_suffix }}" + sent_topics: + - ^org\.fedoraproject\.{{ env_short }}\.mdapi\..* - role: openshift/project app: mdapi diff --git a/playbooks/openshift-apps/release-monitoring.yml b/playbooks/openshift-apps/release-monitoring.yml index 9fadab9816..521b6d3fa7 100644 --- a/playbooks/openshift-apps/release-monitoring.yml +++ b/playbooks/openshift-apps/release-monitoring.yml @@ -13,6 +13,8 @@ roles: - role: rabbit/user username: "anitya{{ env_suffix }}" + sent_topics: + - ^org\.release-monitoring\.{{ env_short }}\.anitya\..* - role: openshift/project app: release-monitoring description: release-monitoring diff --git a/playbooks/openshift-apps/the-new-hotness.yml b/playbooks/openshift-apps/the-new-hotness.yml index 36a509f2fc..eb30082468 100644 --- a/playbooks/openshift-apps/the-new-hotness.yml +++ b/playbooks/openshift-apps/the-new-hotness.yml @@ -20,6 +20,8 @@ thresholds: warning: 10 critical: 100 + sent_topics: + - ^org\.fedoraproject\.{{ env_short }}\.hotness\..* - role: openshift/project app: the-new-hotness