Commit graph

67 commits

Author SHA1 Message Date
James Antill
5c6868260b Merge branch 'nftables' into upstream
* nftables: (2 commits)
  Cleanup nft merge. Chg osbuildapi and nft_custom_rules to use nft_table_filter.
  ...

Signed-off-by: James Antill <james@and.org>
2026-06-01 17:33:24 -04:00
16642a1d02
OK, it works, apply them to prod pagure.io too
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2026-05-22 17:03:44 +02: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
James Antill
3821ea36b5 Cleanup nft merge. Chg osbuildapi and nft_custom_rules to use nft_table_filter.
Signed-off-by: James Antill <james@and.org>
2026-05-01 15:29:04 -04:00
8bf3ced166 pagure: add a new pagure01 in rdu3 iso network
This instance will be the new pagure.io once everything is migrated to
it. This will need a small outage to migrate it instead of a day or two
outage to move the existing hardware.

Tenatively I'd like to schedule this for december 3rd.
The hardware will be moving from rdu-cc on december 8th.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-21 10:41:46 -08:00
922fec19e2
Zabbix: adjust read/write alerts for Pagure & host
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-07-31 10:39:55 +01:00
66e2129002
Zabbix: Use VPN DNS name for zabbix on pagure*
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-07-30 10:50:46 +01:00
3a4aea0cd9 pagure: add another network to blocklist
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-24 13:06:59 -07:00
b87f7de156 pagure: add another network thats hitting the api very hard
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-23 13:13:30 -07:00
8172137887 scrapers: block a bunch more abusing networks
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-14 18:00:48 -07:00
2db0be9ae8 pagure: reject a bunch more heavy hitter networks
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-13 11:07:57 -07:00
ebffcee73c nftables: create a block rules section and move pagure blocks to it
Before the custom rules was actually intended to _allow_ more things
on a particular host. Putting those blocks in there was useless because
custom rules were applied _after_ all the allowed ports, so it wasn't
really blocking anything.

This moves them to a block_rules applied before the ports are allowed
Also move pagure's to that new rule list.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-29 11:36:20 -07:00
8302ff44cd pagure: widen ai blockage
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-26 09:04:10 -07:00
d7c1fdf01c pagure.io: double cpus to try and help scraper issues
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-03-14 12:54:31 -07:00
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00:00
iamyaash
b3d6a90b9a motd generic template added
migrated notes from infra/hosts

motd changes; excluding CSI infos

removed csi_* vars from group_vars; converted csi_purpose & csi_relationship into notes

fixed merge conflicts

minor changes; var

updating YAMLs & playbooks

udpated YAMLs & playbooks again

updated correctly; buildhw.yml

fixing merge conflicts

dest added in motd.yml
2025-01-28 01:10:14 +00:00
James Antill
80aa4bbbc2 Initial version of iptables to nftables conversion. 2025-01-16 11:28:24 -05:00
c451d542c2 pagure: pagure has 24 cpus right now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-10-14 12:55:45 -07:00
34e1bb3e8d pagure: block some ips that are using too much resources
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-11 16:33:03 -07:00
b1490df609 pagure.io: bump memory to handle load better
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-06-26 14:35:48 -07:00
12033a58af pagure: also have stunnel listen for ipv6 eventsource
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-20 12:49:31 -08:00
ff51231e77 pagure: set env to pagure to make sure it is set to something other than pagure-stg or nothing at all
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-20 10:58:39 -08:00
580cd252c5 Inventory group/host variables: Sort yaml
This was done using yq (
https://mikefarah.gitbook.io/yq/operators/sort-keys )

Doing things this way makes it much easier to see if a variable is set
in a file or if two hosts differ in what variables they set. Hopefully
we can keep things sorted moving forward.

Basically this means just sort a-z anything you add to any host or group
vaiable and it will be in the right place.

Additionally, this enforces 'normal' intent rules for all the variable
files which we should also try and obey. 2 spaces for first level, 3 for
next, etc. When in doubt you can run yq on it.

This should cause NO actual vairable changes, it's all just readability
fixing for humans, ansible parses it exactly the same.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-11-16 13:27:57 -08:00
Nick Bebout
0eae657232 Fix sudo rules for sysadmin-noc and sysadmin-veteran 2021-03-28 20:46:01 -05:00
8101073e8e pagure: pagure is on the vpn
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-25 14:11:11 -07:00
a4061e6bbc ipa/client: enable for pagure in prod
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-24 13:44:33 +01:00
cf6faa43b4 Revert "pagure: close all ports but 22 from batcave so we're sure people don't push changes while we do the migration"
This reverts commit 3e792633ec.
2020-10-01 11:06:25 +02:00
3e792633ec pagure: close all ports but 22 from batcave so we're sure people don't push changes while we do the migration
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-10-01 10:04:35 +02:00
a6fc1adcd8 pagure: set max_mem_size
By default max_mem_size is 5 * mem, but when you get to higher memory
sizes that goes over the memory the host has and installs will fail. Set
it to just what we might ever increase it to.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-15 10:23:46 -07:00
348ec04e3a Add pagure02 to rdu-cc
We want to migrate pagure from rhel7 to rhel8, so we are making a
pagure02 instance thats rhel8. We will sync everything over and get it
all tested and working and then schedule an outage to do a final sync
and swap it in.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-15 10:20:29 -07:00
Clement Verna
61b012de95 pagure: remove the git protocol config from the ansible vars
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-05-15 10:24:49 +02:00
47cbd1b97b pagure: add missing comma in inventory/group_vars/pagure 2019-04-09 20:15:52 +02:00
Stephen Smoogen
7c3fa7c396 Make it so our http configs for repoSpanner do not wander off from each other due to too many cooks and too few pots. Change all repospanner related 8443 to use jinja variable repoSpanner_{{region}}_http 2019-04-09 13:50:01 +00:00
27a21881d4 basessh: Make keyhelper explicit
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-04-08 18:56:03 +02:00
1180728939 repospanner/ansible: Move back to the old cluster setup on new ports
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-04-04 18:47:12 +00:00
87a4119965 Use the rpc port 2018-11-22 05:28:24 +00:00
2c15f65915 and firewalls 2018-11-21 22:38:56 +00:00
8a8d9f4b85 Switch over prod pagure.io to keyhelper/aclchecker
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-10-12 10:20:42 +02:00
11d8c01162 Fix a ton of fedmsg routing/policy. 2018-07-12 20:37:53 +00:00
2e2be41ceb Move pagure01 to osuosl03 and double cpus and memory. 2018-02-17 04:48:43 +00:00
256b145135 Change how we backup database dumps.
We had been using rdiff-backup, which was easy to do, but it makes
very little sense with database backups to bother doing that.
Instead we just rsync them over and don't bother with looking at
chunks that may or may not be duplicated. This should make the daily
backup runs much faster.
2017-10-05 22:17:46 +00:00
59b9d93082 Some more routing policy omissions for pagure. 2017-08-17 19:24:45 +00:00
Nick Bebout
a6ad9e2c05 Add sysadmin-veteran everywhere sysadmin-noc is 2017-06-12 03:09:13 +00:00
Patrick Uiterwijk
7f1c1e6612 Let's make off-host backups of Pagure database
Thanks to GitLab for making me check and realize that we didn't have this.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-01 12:00:53 +00:00
ca134e70b8 Pagure has a 250GB disk now. 2016-12-16 16:41:55 +00:00
Patrick Uiterwijk
a6a525ab76 Resize pagure01's disk
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-20 08:44:30 +00:00
4e57205cc7 give pagure more resources 2016-09-07 21:44:39 +00:00
1171a37859 Fix some more fedmsg senders. 2016-04-07 19:29:52 +00:00
af80accc62 Allow pagure to send pagure.request.assigned.added messages 2016-03-14 23:08:35 +01:00
f0da8ff62b Add some fedmsg topics forgotten from the explicit policy list. 2015-12-04 19:40:22 +00:00