Foreman + Katello (patch & content management)
Self-hosted Foreman (5.0, GPLv3) with the
Katello plugin — open-source lifecycle management
tool: host provisioning, software repository mirroring (Pulp), subscription handling (Candlepin),
Content Views and Lifecycle Environments. Deployed in its containerized form with foremanctl.
| Guest | srv-fm — Rocky Linux 9.8, VM 127 on rumba, 192.168.88.31, 18 GB RAM (why), 4 vCPU (type x86-64-v3) |
| Plane | C0 (hg-c0-systems since 2026-10-22: Foreman holds root on C0 hosts) |
| URL | https://srv-fm.isc3.isc-vs.ch/ (smart proxy https://srv-fm.isc3.isc-vs.ch:8443) |
| Source | Foreman 5.0 RPM repositories (foreman-release, katello-repos, el9 builds) — foremanctl 3.3.1 installed from them |
| Version | Foreman 5.0 / Katello 5.0 |
| Stack | Podman (Quadlet / systemd units) running Foreman, Candlepin, Pulp and PostgreSQL 16 as containers; deployment driven by foremanctl (Ansible) |
| Database | PostgreSQL 16 container (quay.io/sclorg/postgresql-16-c10s), published on 127.0.0.1:5432; databases foreman, candlepin, pulp |
| Auth | Local Foreman accounts (initial admin admin) and LDAP users (see auth) |
| Tenancy | Organization ISC, location Rumba (October 2026) |
Standing rules
The container images are built on CentOS Stream 10 and refuse to start on a lower CPU baseline.
With the Proxmox type x86-64-v2-AES, PostgreSQL fails immediately:
Fatal glibc error: CPU does not support x86-64-v3
Keep the VM CPU type at x86-64-v3 (or host). Check from inside the guest:
/lib64/ld-linux-x86-64.so.2 --help | grep "x86-64-v3" # must say "supported"
The official quickstart page lists the el10 URLs. On a Rocky/RHEL 9 guest they install but break
the next dnf upgrade (GLIBC_ABI_DT_RELR errors). Use:
dnf install https://yum.theforeman.org/releases/5.0/el9/x86_64/foreman-release.rpm
dnf install https://yum.theforeman.org/katello/5.0/katello/el9/x86_64/katello-repos-latest.rpm
firewall-cmd --reload alone on srv-fmA reload wipes the firewall rules that Podman (netavark) set for its networks. The containers keep
running, but they can no longer resolve each other: Foreman answers 500 with
could not translate host name "postgresql". This happened on 2026-11-03 (about 12 minutes of outage).
- Change a rule without a reload: run the same command twice, once with
--permanentand once without (runtime), or use--runtime-to-permanent. - If a reload did happen, run
podman network reload --allright after. It restores the rules without restarting any container. Check:podman exec foreman getent hosts postgresql. - The AWX playbook
node_exporter.ymlreloads firewalld: do not run it on srv-fm as it is.
foremanctl reconfigures several components: the guest serves no other purpose. Foreman cannot be
registered to itself.
Memory
In short: srv-fm uses about 11 GB of RAM at rest. That is normal for Foreman + Katello. Keep 18 GB minimum; do not go lower.
Foreman + Katello is a stack of several heavy services, and each keeps its memory even when idle:
| Service | RAM at rest (2026-11-30) |
|---|---|
PostgreSQL 16 (databases foreman, candlepin, pulp) | the largest part, mostly shared cache |
| Foreman: 6 Puma workers + the main process | ~3 GB |
| Sidekiq (3 processes, background jobs) | ~2 GB |
| Candlepin (Java, heap up to 4 GB) | ~1.5 GB |
| Pulp API (5 Python workers) | ~1.5 GB |
Measured on 2026-11-30 with 18 GB: 11 GB used, 6.6 GB still available, 0.2 GB of swap, no out-of-memory kill in 10 days. Upstream asks for 20 GB minimum for Foreman + Katello; 18 GB is enough for our load (one organization, one location).
| Date | RAM | Note |
|---|---|---|
| 2026-11-09 | 20 GB | baseline of the Netdata agent |
| 2026-11-10 | 15 GB | lowered by hand |
| 2026-11-20 | 18 GB | current size, no balloon minimum (balloon = memory) |
Changing the RAM raises a false Netdata alert Memory inventory loss: reset the baseline as shown on rumba.
Deployment
Prerequisites: FQDN hostname (lower-case, contains a dot, no underscore), working forward/reverse DNS, SELinux enforcing or permissive, synchronised clock, IPv6 loopback left enabled.
# repositories (el9)
dnf clean all
dnf install https://yum.theforeman.org/releases/5.0/el9/x86_64/foreman-release.rpm
dnf install https://yum.theforeman.org/katello/5.0/katello/el9/x86_64/katello-repos-latest.rpm
# packages
dnf upgrade
dnf install foremanctl
reboot
# firewall
firewall-cmd --add-port=8000/tcp --add-port=8443/tcp
firewall-cmd --add-service=http --add-service=https
firewall-cmd --runtime-to-permanent
# deployment
foremanctl deploy \
--initial-admin-username admin \
--initial-admin-password '<password>' \
--initial-organization "ISC" \
--initial-location "fm.isc3"
The admin credentials are also printed at the end of the run, in the
TASK [post_install : Admin credentials] output.
foremanctl deploy is re-runnable: each run regenerates the service configuration from the
parameters of the current and previous runs, so it is also how settings are changed later.
Mail
outbound relay: srv-mail.isc3 (192.168.88.163), port 25, no auth/TLS. This requires the
guest's address to be listed in mynetworks on srv-mail
(provisioning/mail/deploy-relay.sh), otherwise mail is refused at Client host rejected
(see Email).
Auth
Foreman uses local accounts and LDAP authentication through FreeIPA.
- LDAP source:
FreeIPA LDAP - LDAP server:
ipa01.ipa.isc-vs.ch, LDAPS on port636 - User base DN:
cn=users,cn=accounts,dc=ipa,dc=isc-vs,dc=ch - Group base DN:
cn=groups,cn=accounts,dc=ipa,dc=isc-vs,dc=ch - Login attribute:
uid - Access group:
access-foreman - User filter:
(memberOf=cn=access-foreman,cn=groups,cn=accounts,dc=ipa,dc=isc-vs,dc=ch)
The LDAP source uses a dedicated service account, svc-foreman-m1, to bind to FreeIPA. Its credentials must be configured in Foreman.
Only users belonging to access-foreman should be allowed to authenticate through this LDAP source. Local Foreman accounts remain available.
Rights come from groups only (dc-isc-prod playbooks/identity/freeipa-model): access-foreman
contains the role groups adm-c0-shared-foreman and svc-c0-shared-foreman-api, each synced to a
Foreman user group (LDAP external group). adm-c0-shared-foreman is a Foreman admin group and owns
every host; svc-c0-shared-foreman-api carries Domain Manager, Edit hosts, Register hosts, Viewer and
View hosts. No user holds a role directly. The local admin stays as break-glass (Vaultwarden
« Foreman – admin », rotated 2026-10-22).
AWX reaches the API as svc-awx-foreman-c0 (FreeIPA, in svc-c0-shared-foreman-api). Its password is
rotated by OpenBao (ldap-freeipa-c0) and read by AWX at each job; it replaced the local account
svc-awx-foreman-m1 and its personal access token (both deleted 2026-10-22).
TLS
Web UI and smart proxy are served under srv-fm.isc3.isc-vs.ch with a FreeIPA certificate tracked by
certmonger (getcert list -i fm-fqdn): /etc/pki/tls/certs/srv-fm-fqdn.crt,
/etc/pki/tls/private/srv-fm-fqdn.key. foremanctl deploy loads them as podman secrets (custom
certificate parameters); after a renewal or a redeploy, foremanctl does not restart the
proxy: run systemctl restart foreman-proxy, otherwise port 8443 keeps serving the old
certificate. Enrolled hosts point rhsm to the FQDN:
subscription-manager config --server.hostname=srv-fm.isc3.isc-vs.ch \
--rhsm.baseurl=https://srv-fm.isc3.isc-vs.ch/pulp/content && subscription-manager refresh
Remote execution
Jobs run as svc-foreman-rex-<plane> (FreeIPA, no password) with an SSH key regenerated daily on
srv-fm and signed by OpenBao (ssh-client-signer-<plane>, 25 h certificate usable only from
192.168.88.31), then sudo to root. HBAC and sudo rules grant the role group
svc-<plane>-shared-foreman-rex on its FreeIPA host group, mirrored by a Foreman host group carrying
the REX parameters:
| Plane | Host group (FreeIPA and Foreman) | Hosts |
|---|---|---|
| C0 | hg-c0-foreman-managed-srv | srv-auto, srv-bao, srv-vw, srv-wd |
| M1 | hg-m1-foreman-managed-srv | srv-gf, srv-pm |
| W1 | hg-w1-foreman-managed-srv | srv-glpi, srv-phpipam, srv-tisc-editor |
No host accepts the proxy's permanent RSA key. Registration installs no key either
(host_registration_remote_execution=false, foreman_setup_rex: false in foreman_register.yml, which
also verifies TLS on the VM through the Foreman CA): a new host joins its
hg-<plane>-foreman-managed-srv before it can run jobs. srv-tisc-editor is an unprivileged LXC: its
idmap also maps the FreeIPA range (1746200000 + 200000, to host IDs 1100000000+), otherwise no FreeIPA
account can log in there (rumba).
Rotation runs from foreman-rex-c0-cert.timer on srv-fm (03:00); the proxy container mounts the
key, an SSH Match user config and a verified known_hosts through the Quadlet drop-in
foreman-proxy.container.d/rex-c0.conf, which foremanctl does not manage. Scripts, add-a-host and
re-seed procedures: dc-isc-prod playbooks/foreman_rex/README.md.
After an OpenBao seal
srv-fm logs in to OpenBao with the password of svc-foreman-bao-c0. The password is stored
encrypted on srv-fm, which changes it at each daily run. Counted from the last good run, three
limits apply:
| After | What happens |
|---|---|
| 25 h | The REX certificate expires: no remote job can run until the next good run |
| 4 days | FreeIPA expires the password (api-accounts-c0, no grace period) |
| 5 days | OpenBao changes the password itself (rotation_period=120h; it was 72 h until 2026-12-01) |
What to do after an unseal:
- Sealed more than a day: on
srv-fm, runsystemctl reset-failed foreman-rex-c0-cert; systemctl start foreman-rex-c0-cert. Otherwise REX waits until 03:00. - Check the result:
journalctl -u foreman-rex-c0-cert -n 5must showlogin OpenBao svc-foreman-bao-c0 : OK. - If the login fails (seal longer than about 3 days), re-seed: dc-isc-prod
playbooks/foreman_rex/README.md, Réamorçage. The procedure copies the current password from OpenBao without displaying it and restarts both services. Between 4 and 5 days, first force a rotation in OpenBao, as described in the same section.
foreman-rex-c0-cert sends no mail when it fails (todo).
isc-deb-errata-rotate, which runs monthly with the same password, does send one. History:
incident 2026-11-28.
Security patching and restarts
Security fixes are applied from Foreman only: weekly recurring jobs per plane and OS (W1 Tuesday,
M1 Wednesday, C0 Thursday, 09:00 UTC) run template 206 "ISC - Install security updates", which
calls /usr/local/sbin/isc-security-update on the host.
Template 206 restarts no service and no machine. It installs the fixes and reports what still
needs a restart. Until then, a fixed library stays inactive in the processes that loaded it (example:
2026-11-03, certmonger on srv-tisc-editor kept the old libnss3). Restart by hand
(systemctl restart <service>, or the VM through AWX JT 16) after agreement with Yacine.
Automating restarts would need its own change plan.
What to restart, Rocky and Debian alike: Grafana, folder "Foreman Operations & Security Center",
tab Correctifs, row À redémarrer (one line per machine and per service), or host → Facts
isc::reboot_required / isc::restart_services in Foreman. The facts come from isc-restart-facts
(Rocky, dnf needs-restarting) and isc-security-facts (Debian, needrestart), daily, at boot and
after each patch run. A host that publishes nothing shows UNKNOWN, never "no". Details: dc-isc-prod
playbooks/foreman_content/README.md and playbooks/monitoring/foreman-ops/README.md.