Commit Graph

315 Commits

Author SHA1 Message Date
Nils Philippsen
6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00
Kevin Fenzi
1df69acbfd kojibuilder: nftables: drop a rdu3 restriction, we need this for s390x as well
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-02 14:15:46 -07:00
Kevin Fenzi
07b5336e55 nftables: rework for s390x builders, rip out iad2
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-02 12:40:06 -07:00
Kevin Fenzi
1b027f42dd releng-compose: nftables, allow rdu3 noc
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-27 20:43:59 -07:00
Kevin Fenzi
56c028d684 bastion: nftables, allow rdu3 noc
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-27 20:40:54 -07:00
Kevin Fenzi
aa3e21cb89 nftables / kojibuilder/rdu3: also allow proxy01/10.iad2 external ips for kojipkgs there, fix after move
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 12:17:42 -07:00
Kevin Fenzi
327bf02f05 nftables / kojibuilder: more copypasta
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 11:55:12 -07:00
Kevin Fenzi
3b73e26506 nftables / kojibuilder: move rdu3 to the proper section, fix syntax errors
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 11:50:14 -07:00
Kevin Fenzi
ef87a8d197 nftables / kojibuilder: adjust ipa rules to allow rdu3 to us iad2 servers for now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 11:38:42 -07:00
Kevin Fenzi
96dbff9277 nftables / kojibuilder / rdu3: temp allow external iad infra
Right now we are sending infra web requests (like for packages) to the
iad2 batcave01 via external. Lets allow this so we can install builders,
then change dns/drop it once we move.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 11:23:20 -07:00
Kevin Fenzi
0efed466be nftables: some more tweaks, add batcave01.iad2 to be able to manage rdu3 builders, adjust osuosl for new external ips
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 10:35:37 -07:00
James Antill
b697488d03 nftables.kojibuilder: NFS is also split, not shared.
Signed-off-by: James Antill <james@and.org>
2025-06-24 11:40:21 -04:00
Greg Sutcliffe
1a17a7f9e6 postfix: quick-and-dirty fix for SMTP nftables on bastion.rdu3
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-06-24 10:17:51 +01:00
James Antill
34ff986944 nftables.kojibuilder: Add more rdu3 changes. Add comments.
Signed-off-by: James Antill <james@and.org>
2025-06-24 01:09:58 -04:00
Kevin Fenzi
d7ecffec22 nftables / staging / rdu3: allow noc01 in rdu3 staging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-23 15:33:45 -07:00
Kevin Fenzi
449385c8b0 nagios: move rdu3 hosts over to noc01.rdu3
Also open firewalls to allow noc03.rdu3 to access them.
Also enable nagios_server on noc01.rdu3.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 20:29:24 -07:00
Kevin Fenzi
7842e1d593 builders: add rdu3 groups and modify rdu3 builder nftables to allow rdu3 things
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 17:44:17 -07:00
James Antill
2e3f4fa81c Add the main nft_block_rules addition to bastion template.
Signed-off-by: James Antill <james@and.org>
2025-04-29 15:05:29 -04:00
Kevin Fenzi
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
Kevin Fenzi
ca12850f5a osuosl: drop br0 interface requirement
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-24 15:41:14 -07:00
James Antill
c063b94af3 Add nftables.bastion for smtp stuff.
Signed-off-by: James Antill <james@and.org>
2025-04-24 21:55:25 +00:00
Kevin Fenzi
a2d6cf7dd4 nftables / osuosl: fix interface for ssh connections
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-24 14:09:02 -07:00
Kevin Fenzi
4d4365cdf5 nftables: add defined check for nft_nat_rules and set it also [] by default
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-24 13:17:03 -07:00
James Antill
69911c5d72 Enable IPv6 nftables.
Signed-off-by: James Antill <james@and.org>
2025-03-04 14:31:54 -05:00
James Antill
ca18224faa Change osbuildapi set table to the ip filter table.
Signed-off-by: James Antill <james@and.org>
2025-03-03 17:08:20 -05:00
James Antill
224d98cbb0 Remove typo from kojibuilder nftables template.
Signed-off-by: James Antill <james@and.org>
2025-03-03 16:52:02 -05:00
Michal Konecny
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
Kevin Fenzi
de84b616f6 riscv-koji: setup correct krb5.conf for the hub
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-11 11:07:53 -08:00
Michal Konecny
7b58dfdce8 Remove fedmsg and github2fedmsg from staging
The messaging bridges openshift project and github2fedmsg VM were
already removed in staging. This is to clean the ansible playbooks.

I will create a separate one for production after this one is merged.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-04 09:13:40 +01:00
Kevin Fenzi
77fe8423e0 base: drop system_identification
We don't need or want this anymore since CSI is gone/dead.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-28 10:49:57 -08: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
Kevin Fenzi
6356a6be83 bastion / iptables: fix network
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-25 07:34:08 -07:00
Kevin Fenzi
79f3af4e58 bastion: allow s390x builders/virthost smtp access
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-25 07:29:02 -07:00
Kevin Fenzi
f72ff64029 bastion / iptables: Add internal RH mxes and drop global allow
We want to allow internal mx'es to send us email still.
We want to drop the global allow for port 25 now that we hopefully have
all the legit senders listed.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-24 10:55:20 -07:00
Kevin Fenzi
06a28bf516 bastion: iptables: fix copypasta
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-24 10:48:32 -07:00
Kevin Fenzi
42cae5591f bastion: adjust smtp firewall rules for mimecast
Setup things so we accept smtp connections from all the places we
currently do, but also from mimecast as incoming emails may come via
that. We don't want to globally allow everyone to inject emails here.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-24 10:36:47 -07:00
Kevin Fenzi
5a3851a187 krb5.conf template: also include from normal include dir
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-08-13 13:42:07 -07:00
Kevin Fenzi
77cee07ef0 base / iptables: fix format for releng and builder machines
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-06 17:26:08 -07:00
Adam Williamson
8b9778777b iptables: correct invalid syntax in nat table
This `[0:]` syntax doesn't seem to be correct. iptables 1.8.10
errors out on encountering it, saying:

invalid policy counters for chain 'PREROUTING'

this seems to be because the check was tightened between 1.8.9
and 1.8.10 to apply even when iptables is not actively restoring
the counters:
https://git.netfilter.org/iptables/commit/?id=4a2b2008fdf4df980433f99a6d8f2003f2005296

I think these are all meant to be 0:0, so let's make them that
and stop iptables choking.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-24 13:00:51 -07:00
Kevin Fenzi
4a6cb460ca buildvm_s390x in boston: retire
We have moved over to the rdu mainframe, drop all the bos kvm hosts.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-27 08:33:41 -08:00
Kevin Fenzi
334219e706 buildvm-s390x: move rest of old zvm builders to rdu and kvm
We want to move (well, really re-install) all these over on the new lpar
in rdu. This will have much higher stats and be in general faster by
both network and cpu. Hopefully all these will replace all the old
boston ones.

We may need to break these up some more into smaller vm's if the number
isn't able to keep up ok. We can adjust after things are all working.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-21 09:51:24 -08:00
Kevin Fenzi
1c4408ebe5 buildvm-s390x-14: move to rdu and setup as new varnish cache
Lets move this vm over to rdu, and set it up as a new varnish cache.
This way we can test 01 doing builds before moving others.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-20 17:38:34 -08:00
David Kirwan
7d63531b82 zabbix: ensure zabbix can communicate with releng machines
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2024-02-09 13:04:46 +00:00
David Kirwan
beb09a8835 zabbix: debugging iptables config
- add zabbix agent to RabbitMQ hosts

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2023-12-04 07:01:22 +00:00
Michal Konecny
df9d9a0d51 [IPA] Use ipa_server variable where posible
Don't use hardcoded ipa01, use ipa_server variable instead that is set in group_vars.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-11-29 17:29:15 +01:00
David Kirwan
369ae4f66e zabbix: Add zabbix01 production to iptable rules
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2023-11-28 08:54:13 +00:00
Kevin Fenzi
623c0f45bd base / iptables: rework how this blocklist works
Just rip out the parts here as they are no longer needed.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-15 12:41:54 -07:00
Kevin Fenzi
e524963387 iptables: fix conditional
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-15 12:23:08 -07:00
Kevin Fenzi
5936815f75 iptables / staging: more adjusting
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-15 12:18:21 -07:00