From e4b97f2da9350de6f476e7e8e94d324dd32530c1 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Thu, 5 Dec 2019 07:35:35 +0100 Subject: [PATCH] copr: generate queue id with uuidgen as suggested --- inventory/group_vars/copr_back | 3 +++ inventory/group_vars/copr_back_dev | 3 +++ .../templates/fedora-messaging/copr_messaging.toml | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/inventory/group_vars/copr_back b/inventory/group_vars/copr_back index 1ae8a49c7b..9e769cff98 100644 --- a/inventory/group_vars/copr_back +++ b/inventory/group_vars/copr_back @@ -39,3 +39,6 @@ csi_purpose: Provide the backend for copr (3rd party packages) csi_relationship: | - Backend: Management of copr cloud infrastructure (OpenStack). - Small frontend with copr's public stats + + +copr_messaging_queue: "a9b74258-21c6-4e79-ba65-9e858dc84a2b" diff --git a/inventory/group_vars/copr_back_dev b/inventory/group_vars/copr_back_dev index 530f89dccc..4b47748ee7 100644 --- a/inventory/group_vars/copr_back_dev +++ b/inventory/group_vars/copr_back_dev @@ -44,3 +44,6 @@ letsencrypt: - copr-be-dev.cloud.fedoraproject.org challenge_dir: /var/lib/copr/public_html mail: copr-devel@lists.fedorahosted.org + + +copr_messaging_queue: "c8e11df7-e863-4ca4-99b9-d37c6663c7f7" diff --git a/roles/copr/frontend-cloud/templates/fedora-messaging/copr_messaging.toml b/roles/copr/frontend-cloud/templates/fedora-messaging/copr_messaging.toml index 067d605bf1..9246bedf09 100644 --- a/roles/copr/frontend-cloud/templates/fedora-messaging/copr_messaging.toml +++ b/roles/copr/frontend-cloud/templates/fedora-messaging/copr_messaging.toml @@ -33,14 +33,14 @@ arguments = {} # # If you require a stronger guarantee about delivery, please talk to Fedora's # Infrastructure team. -[queues.00000000-0000-0000-0000-000000000000] +[queues.{{ copr_messaging_queue }}] durable = false auto_delete = true exclusive = true arguments = {} [[bindings]] -queue = "00000000-0000-0000-0000-000000000000" +queue = "{{ copr_messaging_queue }}" exchange = "amq.topic" routing_keys = [ 'io.pagure.prod.pagure.git.receive',