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
@@ -82,7 +82,7 @@ Main entry point: `fail2ban` (everything), `fail2ban_install`, `fail2ban_validat
|
||||
|
||||
## Tests
|
||||
|
||||
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It runs `check` before the converge (a fresh host, where the image already has fail2ban installed) and after it (a configured host).
|
||||
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It runs `check` before the converge (a fresh host, where the role installs fail2ban) and after it (a configured host).
|
||||
|
||||
- Converge applies the main entry point with an extra `fail2ban_ignoreip` network and calls `service_jail` twice, one jail with a `logpath` and one with a `journalmatch`.
|
||||
- Converge also runs inputs that must be refused: a service filter without `failregex`, and a `fail2ban_ignoreip` entry with whitespace, a plain string instead of a list, and an entry starting with `;`. The `fail2ban_ignoreip` refusals are matched on their message.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# The image ships fail2ban and no APT lists; the check step needs fail2ban gone and the lists back,
|
||||
# or the install task cannot even preview the package.
|
||||
# The purge keeps the scenario independent of what the image ships. The image keeps no APT lists,
|
||||
# and the check step needs them, or the install task cannot even preview the package.
|
||||
- name: Prepare a host without fail2ban
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# The image ships ufw and no APT lists; the check step needs ufw gone and the lists back, or the
|
||||
# install task cannot even preview the package.
|
||||
# The purge keeps the scenario independent of what the image ships. The image keeps no APT lists,
|
||||
# and the check step needs them, or the install task cannot even preview the package.
|
||||
- name: Prepare a host without ufw
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
Reference in new issue
Block a user