1
0
Fork 0
forked from infra/ansible
Commit graph

558 commits

Author SHA1 Message Date
360f493bc4 pagure: try adjusting lines on patch
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-07 17:33:10 -07:00
71585073ad pagure: add a line to the patch so the numbers match up and it applies
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-07 17:14:36 -07:00
6882b20e9b pagure: add a line to the patch so the numbers match up and it applies
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-07 17:01:28 -07:00
c7a559d359 feat(pagure.io): added notification banner and git hook that informs about pagure migration
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
2026-07-07 22:34:20 +00:00
6eac650a10
Nagios: remove nrpe from a bunch of smaller things
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-01 14:22:40 +01:00
969a94bd18
Zabbix: add tags missed in previous commit
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-30 12:48:53 +01:00
a0c7bf49ad
Zabbix: migrate still-in-use Nagios plugins to the relevant roles
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-30 12:42:26 +01:00
6236fc9d67
Zabbix: Migrate Pagure checks from Nagios
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-11 17:12:40 +01:00
James Antill
40b3225890 pagure: hotfix for commit hash
Signed-off-by: James Antill <james@and.org>
2026-06-01 21:12:12 +00:00
05eb12595e
Apply hotfix patches to pagure.io too (staging for now)
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2026-05-22 16:44:18 +02:00
c49ea00759 Pagure.io: display the sunset message on web and on git push
This just sets it up to display the messages on prod. They are already
implemented on staging.

Resolves: forge/forge#432

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-18 13:14:22 +10:00
025cbe84f1 pagure-staging: fix the patchfile again
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-17 13:22:27 +10:00
67ff813850 pagure-staging: fix the patchfile
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-17 13:04:33 +10:00
566cda9c46 pagure-staging: include the patchfile
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-17 12:38:40 +10:00
a7040abb2b pagure-staging - add sunset warning to git post-recieve
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-17 12:28:32 +10:00
0a47333ffc Pagure-staging: remove unimplemented config for git hook message
I mistakenly thought there was a GIT_PUSH_MESSAGE option, but there is
not. so removing this from staging.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-16 15:08:22 +10:00
50fc6d4d72 pagure-staging: add git push message for pagure.io decommissioning
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-16 13:42:28 +10:00
65aa2a1dcc pagure-staging: add sunset message to top of page
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-03-16 13:21:24 +10:00
aedf43d1f3 Restore arcane breadcrumbs (broken Forge links)
Also some minor changes to satisfy yamllint.

Signed-off-by: Michael Winters <fedora@mwinters.net>
2026-03-11 21:09:36 +00:00
080db33424 turn of new projects UI for production
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-02-09 12:37:51 +10:00
d30bdfb3ed pagure / staging: add missing endif
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-21 13:40:38 -08:00
82f9af8767 feat(roles/pagure): adding myself as pagure admin on stg
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
2026-01-21 21:37:26 +00:00
a754144f19 Update infra pagure.io links to forge.fp.o (WIP)
This should update all the references we have to
https://pagure.io/fedora-infrastructure to the
new https://forge.fedoraproject.org/infra/tickets/ area.

Do not merge this before the migration on tuesday.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-20 14:39:40 -08:00
d00ef11307 Save pingou's email box
We should not flood his mailbox anymore.

I set it to go to admin@fedoraproject.org, but if it's too much for
everyone we could just set it to nobody, or adjust it so it doesn't send
so many, or something else.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-19 22:25:57 +00:00
140a6eb752
Zabbix: Don't hardcode trigger hostnames
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-11 11:52:51 +00:00
69fd257fd9
Zabbix: add external-check on Pagure certs
This is a POC on cert checks - it assigns an item to the Pagure host
(not via a template) but the actual check is executed on the Zabbix
server.

In reality, we should probably add LLD to certgetter01 for all the LE
certs, but this is a useful example for other cert types

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-11 11:47:02 +00:00
065a89faeb pagure.io: increase processes
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-09 11:34:04 -08:00
fd342ee1a4 pagure.io: forbid generating archives from forks
pagure will generate a zip or gz archive of any particular thing on a
fork. scrapers crawl this and generate an archive for every single
tag in a fork.

Since we don't really need these in forks, lets forbid that.

Users that somehow need an archive for a fork can clone locally and
generate one. Non forks we are leaving enabled at this time as they
can/do use this for releases.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 10:15:16 -08:00
88686312db pagure: enable rewriteengine
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 10:03:20 -08:00
8fbcbac96d pagure: fix order of operations to not block after proxying (which will not work)
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 10:00:54 -08:00
b88b92a719 pagure: disable /blame/ on pagure.io
The blame endpoint gets crawled a lot by scrapers and it's very
intensive for pagure. It has to run the blame in the git repo, which
can take a while and requests pile up.

While right now load is fine with it, it's might be causing
sporadic 503's that we are seeing cloing things. If there's a bunch
of blame requests cloging up the queue.

Users can git clone and run a blame locally if they need to.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 09:57:07 -08:00
b4425bf9e6 [pagure] Re-enable project creation on staging
See https://pagure.io/fedora-infrastructure/issue/12943 for the reason
behind this.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-11-27 11:14:33 +01:00
33b5710bb0 pagure: move python3-httplib2 to the right place
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 18:52:11 -08:00
f9a589fc50 pagure: actually install python3-httplib2 before trying to hotfix it
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 18:42:34 -08:00
03b49682a5 pagure: Only apply srcfpo hotfix on src.fp.o
We don't want to try and apply this on pagure.io/stg.pagure.io, it's
src.fedoraproject.org specific.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 18:17:47 -08:00
c8aaf71b12 Fix Ben's commit 2025-09-23 18:57:02 -05:00
Ben Maconi
4bcf63ba93 added redirect for www.pagure.io to pagure.io 2025-09-23 18:35:49 -05:00
ef2b6c4dd5 pagure: enable anubis in prod
This should enable anubis on pagure.io.
If it needs backing out, revert this commit.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 10:22:43 -07:00
c2a32e9b80 stg.pagure.io: add anubis pod
This adds a setup where we have podman pulling the anubis pod and
running it and then proxying requests through it for weighing.

The pod runs as an unpriv 'anubis' user and uses a systemd service file
to manage it.

Changes then are made in httpd config to terminate ssl and then proxy
via anubis. The flow is:

request -> httpd -> anubis/pod -> httpd (pagure wsgi app).

This is already manually setup on stg.pagure.io and this pr
should not change pagure.io any.

If/when we wish to enable this for pagure.io, we just need to adjust the
0_pagure.conf file and the playbook to include the role.

Note that we will want to use a different approach for proxies/other
applications. There we can use the native fedora anubis package, and
will need to adjust templates to handle the middle proxying.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-05 16:33:08 +00:00
81cf508f3a Stop sending pagure error emails to pingou
Pagure is currently sending tens of thousands of emails per day. It's
flooding my mail server and I can't keep up.
Since I'm not reading them anymore, it's likely better to just not send
them :(

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2025-08-29 17:43:35 +00:00
8ee5e09ce1 pagure02: drop a bunch of old blocks
For now, we should be able to drop these blocks.
I checked logs and there have been no recent hits to these.
Of course they could become active again, but we can always put it back
in place. There's been requests from folks wanting to submit pr's that
their forks are blocked by these.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-08-28 18:36:50 +00:00
James Antill
5f3f142be1 pagure: Actually add the rsyslog-logrotate file.
Signed-off-by: James Antill <james@and.org>
2025-08-26 14:13:16 -04:00
James Antill
db3727afb1 pagure: Fix rsyslog logrotate.
Signed-off-by: James Antill <james@and.org>
2025-08-26 13:38:11 -04:00
James Antill
9eb29f21e9 pagure: Revert part of the lint cleanup. Prev=c5ca51336411...
Signed-off-by: James Antill <james@and.org>
2025-08-26 13:17:08 -04:00
Lenka Segura
a2cfb0a360 pagure: hotfix for links to accounts.fpo
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2025-08-07 21:15:42 +00:00
Lenka Segura
c5ca513364 pagure: Fix lint errors in main task
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2025-08-07 22:21:42 +02:00
c12a1cb27d pagure: drop fedora-infra forks for now as crawlers are hammering the crap out of pagure over them
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-02 07:43:30 -07:00
836d79193c pagure: update ansible for latest blocks from ai
Update the latest project blocks that were added.

Also, extend the bot block to docs.pagure.io, which was
being hammered by scrapers.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-30 10:02:24 -07:00
b55d66cc51 Revert "pagure: block some more forks and blame/history from ai scrapers"
This reverts commit 1c7ecb6bcf.

Lets see if the bots have moved on.
2025-05-26 08:32:37 -07:00
1c7ecb6bcf pagure: block some more forks and blame/history from ai scrapers
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-25 21:47:39 -07:00