Commit graph

138 commits

Author SHA1 Message Date
Kevin Fenzi
dc85205755 osci: remove queue-3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-18 09:28:01 -07:00
Miroslav Vadkerti
6db9b164a1 Add another OSCI queue
We need another queue as we are extending one of our triggers
to another topic.

Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
2022-07-18 16:26:22 +00:00
Aurélien Bompard
d083b291d3
sent_topics can't be a list, it has to be a single regexp
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-07 09:09:24 +02:00
Aurélien Bompard
24c7194f1a
Split off some rabbitmq vhosts
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-05 09:29:29 +02:00
Aurélien Bompard
4249161ad0
RabbitMQ: add topic auth to more apps
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2022-07-05 08:35:10 +02:00
Kevin Fenzi
e9fc261362 eln-next: drop rabbitmq queue for eln-next, it is no longer needed
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-03-22 15:58:42 -07:00
Pierre-Yves Chibon
1cbdd19d3b rabbitmq: fix the suffix for the cbs user in stg
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2022-02-14 11:51:57 +01:00
Pierre-Yves Chibon
85362fa63d rabbitmq: create the CBS user on rabbitmq
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2022-02-14 10:30:49 +01:00
Leonardo Rossetti
76ec9e06a1 adding resultsdb username 2022-01-24 18:49:34 +00:00
Kevin Fenzi
df6a215e0b rabbitmq: add eln user and queues
See https://pagure.io/fedora-infrastructure/issue/10200

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-10-01 13:27:15 -07:00
Brian Stinson
4f635e3ad8 Add a fedora-messaging queue for the CentOS Stream robosignatory
Signed-off-by: Brian Stinson <bstinson@redhat.com>
2021-09-02 11:05:58 +00:00
Aurélien Bompard
9f2f798b9c
typo
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2021-06-11 11:40:51 +02:00
Aurélien Bompard
01ed5b118a
RabbitMQ: allow server-named queues
See: https://pagure.io/fedora-infrastructure/issue/9385

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2021-06-11 11:39:24 +02:00
Kevin Fenzi
81030d9a3d rabbitmq_cluster: move nagios perms into main playbook in one place
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 13:43:35 -08:00
Kevin Fenzi
e753bda034 rabbitmq_cluster: cookies are 0400 after restart, set them right here too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 12:42:20 -08:00
Kevin Fenzi
c8a77c5574 rabbitmq_cluster / staging: actually delegate to the stg host when running in stg.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 12:40:49 -08:00
Kevin Fenzi
88905ed40f rabbitmq_cluster / stg: use right datacenter for federation
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 12:36:01 -08:00
Kevin Fenzi
77d44a7159 rabbitmq_cluster / apps: no need to make gitlab-centos user as the queue role does that
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 12:16:06 -08:00
Kevin Fenzi
c73f991e30 rabbitmq_cluster / osci / staging: adjust the queue names to match username
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 10:47:06 -08:00
Kevin Fenzi
3f5fe0434d rabbitmq_cluster / osci queues: have to make them start with username in stg
This worked in prod, but in staging the queue isn't starting with the
username because that has a .stg in it. So, we need to also have the
queue's have .stg in the name.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-16 10:37:22 -08:00
Kevin Fenzi
d34274b02a rabbitmq_cluster: fix some typos
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-08 14:30:26 -08:00
Kevin Fenzi
ae62e4a4e7 rabbitmq_cluster: setup private mbs vhost/user
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-08 13:09:56 -08:00
Kevin Fenzi
a7ddcf5828 rabbitmq_cluster: expire /bodhi queues that are idle more than 1 week.
Fixes https://pagure.io/fedora-infrastructure/issue/9170

Lets just have rabbitmq cleaup any queues in the /bodhi vhost that are
around for more than a week idle.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-02 17:07:35 +00:00
Kevin Fenzi
dbd763816b rabbitmq cluster / osci queues: adjust so playbook doesn't fail on trying to change queues
The osci queue's have changed since this playbook last completed.
The ttl changed and the routing keys have changed.
The ansible rabbitmq module can't change these things on already created
queues because the api doesn't allow it. This makes this playbook fail
with:

"RabbitMQ RESTAPI doesn't support attribute changes for existing
queues"

So, for now, set the ttl to what it already is, and don't change the
routing keys at all. Hopefully this will get it to complete and osci can
manage at least routing keys themseleves wherever they do that.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-28 13:50:56 -08:00
Brendan Reilly
2ce9d8e8d3 MBS uses SSL auth for celery 2021-01-28 14:16:24 -05:00
Brian Stinson
c497b17e19 Add a centos-koji user in rabbitmq that corresponds to the certs
generated for us

Note: this is indeed a different user from the one listed before it.
koji-centos is used for mbbox.

Relates to: https://pagure.io/fedora-infrastructure/issue/9603
2021-01-28 09:17:53 -06:00
Kevin Fenzi
af302f46e0 rabbitmq / centos-odcs: more adjustments to user creation
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-07 15:59:53 -08:00
Kevin Fenzi
88cae583c6 rabbitmq / centos-odcs: specify correct vhost
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-07 15:56:22 -08:00
Kevin Fenzi
c60c1fbaf8 rabbitmq / centos-odcs: we need a centos-odcs user
This was hidden away in the odcs playbook in fedora infra, so I missed
that we didn't make it in the odcs role, which is where we copied the
things for the centos odcs application. So, add it in there so it makes
a centos-odcs user.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-07 15:45:09 -08:00
Mohan Boddu
fd8e2f238d Use underscore instead of dashes
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2020-12-16 10:11:57 -05:00
Mohan Boddu
11db5b4cfa Adding centos-odcs/centos-odcs-private-queue queue and user
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2020-12-15 10:47:36 -05:00
lrossett
f09d005563 adding centos-koji mq user 2020-12-14 08:16:01 +00:00
Pierre-Yves Chibon
6ce858af4c rabbitmq: fix some more the creation of the user and queue for gitlab-centos
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-12-08 10:12:48 +01:00
Pierre-Yves Chibon
cdbf639f69 rabbitmq: drop an extra . where we defined the gitlab-centos queue
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-12-08 10:05:36 +01:00
lrossett
aa73555871 changing topic name to match centos source 2020-11-18 08:42:30 +00:00
lrossett
806b6bfbdc adding gitlab-centos queue and user 2020-11-10 17:26:05 +00:00
Siteshwar Vashisht
5118b6817d Update roles/rabbitmq_cluster/tasks/apps.yml
Add `alt-src` user and queue for `sync2git` service for CentOS Streams
2020-09-15 07:55:04 +00:00
Pierre-Yves Chibon
4bc6749fad rabbitmq_cluster: Remove the rpminspect queue from the server
The Fedora CI folks are apparently no longer using it

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-09-04 21:18:07 +02:00
Pierre-Yves Chibon
4a93e4f1e0 rabbitmq_cluster: add a tags for the task on the osci-pipelines
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-07-23 10:03:31 +02:00
Michal Srb
079119927f Lower TTL for OSCI queues
Not all OSCI queues are actively used all the time -- no need to keep messages for 10 days in them. 5 days TTL should be plenty of time even for actively used queues.
2020-07-23 07:31:19 +00:00
Jonathan Lebon
a51feef5bd Revert "rabbitmq: add coreos queue"
This reverts commit 42335b7370.

We only need the `coreos` user, so that we can publish messages. We
don't need the `coreos` queue.

See https://pagure.io/fedora-infrastructure/issue/9085#comment-663345
2020-07-08 07:56:24 +00:00
Kevin Fenzi
2290817ace inventory: drop more autosign01 and bastion-comm01 rabbitmq: add monitoring plugin now.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-30 17:10:32 -07:00
Kevin Fenzi
a9beef0b8d rabbitmq / osci: define the loop var in loop_control
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-22 10:37:39 -07:00
Kevin Fenzi
331272c043 fix typo in last commit
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-22 10:27:34 -07:00
Kevin Fenzi
10e4307204 rabbitmq / osci: try and set loop variable here to avoid clash with rabbit/queue role
The default loop var is 'item' but it's already being used in
rabbit/queue so if we use it here also it causes clashing and a invalid
binding. So, change this one to something else and see if it fixes the
issue.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-22 10:20:59 -07:00
Andrei Stepanov
2296847061 Add osci client+queues to RabbitMQ
Signed-off-by: Andrei Stepanov <astepano@redhat.com>
2020-06-10 23:10:27 +00:00
Kevin Fenzi
05f2b9366d iad2: make copr and faf rabbitmq users
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-08 10:46:30 -07:00
Kevin Fenzi
5351aa704e iad2 move: setup rabbitmq to be ready for moving.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-08 07:49:28 -07:00
Kevin Fenzi
5f626eb145 iad2: have rabbitmq instances use rhos16 instead of rhos13, which was/is rhel7 based
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-31 13:35:43 -07:00
Aurélien Bompard
044c88e68b Set the TTL to 10 days on the centos-ci queue
Fixes #8939

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2020-05-26 13:46:53 +00:00