ci(images): stop baking ufw and fail2ban into the molecule images
ADR 0002 keeps a package a role installs out of the molecule images, so its scenario exercises the install. The ufw and fail2ban roles install their packages, so both images drop them; iptables, openssh-server, python3-systemd and gnupg stay as fixtures. The labels, header comments, image docs and image-smoke package lists no longer claim the packages are baked or that a converge makes no network calls. Refs: #435 Assisted-by: Claude Code
This commit is contained in:
1 parent
6e9709f0da
commit
c64b4b932b
9 files changed
+35
-41
No files matched your search
@@ -11,9 +11,10 @@ It is the release the hosts run today.
|
||||
- systemd as the init system (`systemd`, `systemd-sysv`), D-Bus, `sudo`, `iproute2`,
|
||||
`ca-certificates`.
|
||||
- Python for Ansible on the target: `python3`, `python3-apt`, `python3-systemd`.
|
||||
- The packages the roles manage, preinstalled so a converge makes no network calls:
|
||||
`iptables`, `ufw`, `fail2ban`, `openssh-server` (the `ssh` unit is enabled), and `gnupg`
|
||||
(the docker scenario signs its stand-in APT repository with it).
|
||||
- Test fixtures no role installs: `iptables`, `openssh-server` (the `ssh` unit is enabled), and
|
||||
`gnupg` (the docker scenario signs its stand-in APT repository with it).
|
||||
- No package a role installs, such as `ufw` or `fail2ban`: the role's scenario exercises that
|
||||
install. The APT lists are removed, so such a scenario refreshes the APT cache in its prepare.
|
||||
- Throwaway SSH host keys and a machine-id generated at build time. They are not secrets and the
|
||||
image is a test target that must never be exposed to a network.
|
||||
|
||||
|
||||
@@ -11,9 +11,10 @@ It is the release the hosts are moving to; every role scenario whose role declar
|
||||
- systemd as the init system (`systemd`, `systemd-sysv`), D-Bus, `sudo`, `iproute2`,
|
||||
`ca-certificates`.
|
||||
- Python for Ansible on the target: `python3`, `python3-apt`, `python3-systemd`.
|
||||
- The packages the roles manage, preinstalled so a converge makes no network calls:
|
||||
`iptables`, `ufw`, `fail2ban`, `openssh-server` (the `ssh` unit is enabled), and `gnupg`
|
||||
(the docker scenario signs its stand-in APT repository with it).
|
||||
- Test fixtures no role installs: `iptables`, `openssh-server` (the `ssh` unit is enabled), and
|
||||
`gnupg` (the docker scenario signs its stand-in APT repository with it).
|
||||
- No package a role installs, such as `ufw` or `fail2ban`: the role's scenario exercises that
|
||||
install. The APT lists are removed, so such a scenario refreshes the APT cache in its prepare.
|
||||
- root's `sudo` skips the PAM account check (`pam_rootok`), so `become` works in the container.
|
||||
- Throwaway SSH host keys and a machine-id generated at build time. They are not secrets and the
|
||||
image is a test target that must never be exposed to a network.
|
||||
|
||||
Reference in new issue
Block a user