1
0
Fork 0
forked from infra/ansible
Commit graph

1,092 commits

Author SHA1 Message Date
Jiri Kyjovsky
99f1ff2202 base: disable iptables service when nftables is enabled
When `nftables=True` the base role deploys nftables rules and enables the
nftables service, but never disables the iptables service. On freshly
provisioned hosts the iptables service can be left running from cloud-init,
overwriting nftables rules and silently dropping traffic on ports defined
in `tcp_ports`.

Stop and disable the iptables service explicitly when nftables is the
intended firewall backend.
2026-07-07 22:02:24 +00:00
83b0f60d6a [postfix] Change the relayhost for sign machines
Today the bastion relayhost didn't work for sign-bridge. So we changed
it to bastion01.rdu3.fedoraproject.org. This worked, so let's reflect
that change in ansible as well.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-07-07 11:01:08 +02:00
fbf73ff1f9
Nagios: remove nrpe from the firewall config
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-01 13:35:34 +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
7f1b0dd13a base: no_log for the keytab fetching
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-06-29 15:46:53 -07:00
a16deeb465
Postfix: use postfix_group variable to get the right main.cf for maintainer_test
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-25 15:28:25 +01:00
4962777991
Postfix: test host-specific main.cf file for postfix
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-25 15:21:04 +01:00
7db40e0556
Postfix: use vpn route for ending via bastion on maintainer-test hosts
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-25 14:31:13 +01:00
9ce1351301 Revert "proxies / staging: move ssh to port 222"
This reverts commit a83380f64c.
2026-06-23 14:21:20 -07:00
a83380f64c proxies / staging: move ssh to port 222
This pr attempts to move sshd to port 222 on proxy01.stg and
proxy02.stg.

We want to do this (first here and then in prod) because we want to nat
in ssh from external and use haproxy to send that into
forge.fedoraproject.org. If we were using port 22 to connect here
it would conflict with forwarding it on to haproxy.

Note that we still need to actually get networking folks to make the nat
mapping and we still need to add haproxy config to send it into forge in
openshift, but this is the first step we need to get working before we
can do those things.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-06-23 21:02:52 +00:00
0655279df0
Zabbix: make ping threshold trigger configurable
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-17 10:26:33 +01:00
33e15c3b95
Zabbix: restrict redhat-postfix cron to boastion hosts
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-10 19:08:42 +01:00
0a63d89212
Zabbix: migrate redhat-specific mailq check from Nagios
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-09 16:22:04 +01:00
82916a3c2d
Zabbix: add monitoring of SMTP port 25 for mm/gateways
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-06-08 12:13:31 +01:00
James Antill
f2e951adb6 nftables: Remove zabbix rules. Minor cleanup for jinja comments.
Signed-off-by: James Antill <james@and.org>
2026-06-03 14:37:09 -04:00
James Antill
3fdaf170d5 nftables: Use the config. table names in staging.
Signed-off-by: James Antill <james@and.org>
2026-06-01 18:43:59 -04:00
James Antill
e11b39314d nftables: Fix/merge monitoring changes between prod/staging.
Signed-off-by: James Antill <james@and.org>
2026-06-01 18:38:22 -04:00
James Antill
4a6fc0fdf5 nftables: Fix table name scoping issue.
Signed-off-by: James Antill <james@and.org>
2026-06-01 17:42:12 -04:00
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
4262b3610f dns: only set crypto-policy on rhel9 dns servers, 10 does not have that policy
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-20 14:44:21 -07:00
a5d7291edc base / nftables / kojibuilder: allow sign-bridge access for all builders in the secureboot group, not just x86-02/a64-02
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-18 15:24:12 -07:00
af80a6a3a0 secure-boot: clean up old bkernel role and add 2 more builders
We are no longer using the bkernel role (using the old card thats in
buildhw-x86-01), so this removes that role and mentions of it.

Also, because we are urgently building kernels all the time now,
add one more buildhw-x86 and one more buildhw-a64 to secure-boot channel
so we can build more/faster kernels.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-15 19:14:17 +00:00
05b94d7029
Zabbix: Improve Postfix queue trigger/recovery
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-05-12 13:54:35 +01:00
8ede1564c8 smtp-mm: add a fedoraproject transport to use the vpn
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-08 10:13:03 -07:00
0506d3a645 [postfix] Obfuscate the IP on smtp-auth server
This will update configuration to clean Received header from e-mail
forwarded by smtp-auth-iso01 server to prevent leaking of internal IPs.
See infra/tickets#12835

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-05-05 07:52:05 +00:00
James Antill
ab631bed2e Merge branch 'upstream' into HEAD
* upstream: (551 commits)

Signed-off-by: James Antill <james@and.org>
2026-05-02 20:02:18 -04: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
James Antill
ba4470365e Merge branch 'main' into nftables
* main: (2174 commits)

Signed-off-by: James Antill <james@and.org>
2026-05-01 12:01:48 -04:00
James Antill
ae9230c37f Cleanup the nftables files, using includes.
Rename the tables to be cle_ prefixed/unique. This allows people to run
cle nftables and firewalld etc.

Signed-off-by: James Antill <james@and.org>
2026-05-01 11:27:07 -04:00
a0d52dff1a Zabbix: re-use base monitoring role in zabbix_server for non-Ansible hosts
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-26 13:33:02 +00:00
3b09e415fd smtp-auth-iso01: rename master.cf file to correct hostname
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-03-24 08:04:49 -07:00
ac014ece60
Zabbix: Remove leftover variable definition
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-23 11:56:28 +00:00
795a4e26e9
Zabbix: Move base ping/bmc checks to a template
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-23 11:52:37 +00:00
15ca4c25ed Zabbix: move Zabbix API setup to base role
This relocates the work done via the Zabbix API to create & configure
a host to the base role, such that it is done for *every* host, even the
ones that don't run the agent (such as builders). This covers:

- Creating the host
- Adding the hostgroups
- Creating a set of items/triggers that ping the DNS name
- Creating a set of items/triggers that check the BMC interface (if defined)

The zabbix_agent role then deals with installing the agent and assigning
the agent template, as the rest has already been done in base.

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-20 11:43:51 +00:00
6ac10896be [postfix] Fix postfix config file
Few machines were having issues with sending e-mails (retrace03 and
pkgs01). In both cases it was caused by postfix misconfiguration.

* retrace03 - It's RHEL8 machine, so lmdb is unavailable and it also
didn't used vpn to reach bastion
* pkgs01 - It had just bastion as relay name, which wasn't happy to
resolve through DNS, this is using FQDN instead

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-16 12:12:14 +01:00
c68be9b1df [postfix] Check the correct file being created
Let's check for .lmdb file, not the file itself.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-13 15:38:47 +01:00
bd50f47247
Proxies: use a single path on the proxy as destination for the ticketkey
This also removes the Nagios config - it'll be looking in the wrong
place. A Zabbix replacement check will follow in the next commit.

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-13 10:35:10 +00:00
aaa5941e9f base / postfix / bastion: switch some maps back to hash
These two maps are generated by a script, so we should adjust that
script to make lmdb if we want to switch them.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-03-11 20:36:40 -07:00
d81bf5903b base / postfix: make lmdb regex not also pull , in when entries are seperated by ,s
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-03-11 17:54:30 -07:00
1ab995c2f0 bastion/gateway: cache maps have to be btree
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-03-11 17:37:41 -07: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
402472283a [postfix] Fix the when condition
Path always needs to be in quotes inside jinja2 template.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 15:25:53 +01:00
e3efee90c1 [postfix] Use the correct variable in lmdb
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 14:56:43 +01:00
e6f7c234ab [postfix] Move lmdb handler to separate file
After merging I found out that the handler can't handle blocks. The
workaround is to include tasks from separate file.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 14:48:09 +01:00
f40260df77 [postfix] Don't install postfix-lmdb on RHEL < 8
The RHEL/EPEL 8 doesn't have postfix-lmdb package, so let's skip it for
older releases.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 13:27:21 +00:00
eeeaaadd9e [postfix] Update pkgs/pagure postfix configs
Missing space in variable for pkgs group ansible config

Revert changes in pagure and pkgs configs to use hash instead of btree
as before

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 13:27:21 +00:00
01db5bb986 [postfix] Fix ansible-lint issues
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 13:27:21 +00:00
4908d2b2d7 [postfix] Update lmdb tasks
1. Move lmdb file creation to handler
2. Create separate postfix config for RHEL8 machines (pkgs, pagure)
2026-03-11 13:27:21 +00:00
5e9129cd00 [postfix] Migrate to lmdb
This change will migrate postfix from bdb to lmdb.
See infra/tickets#13035 for more
details.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-03-11 13:27:21 +00:00