test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those
Every role except network_interfaces runs its molecule scenarios on the 24.04 and 26.04 images and declares Ubuntu noble and resolute; jammy and Ubuntu all are dropped. trixie stays declared until the Debian 13 image (#226) tests it. docker and gitea stay on noble until the 26.04 image ships gnupg (#378). Closes #133 Assisted-by: Claude Code
This commit is contained in:
1 parent
3bfc485076
commit
2e1ad033e4
43 files changed
+322
-98
No files matched your search
@@ -6,7 +6,7 @@ Installs Docker Engine from the upstream Docker APT repository, optionally updat
|
||||
|
||||
Ubuntu 24.04 (noble), the platform the molecule scenario runs on. The key and repository URLs point at `download.docker.com/linux/ubuntu`, and the source line uses `ansible_distribution_release`. The apt architecture is derived from the host (`x86_64` gives `amd64`, `aarch64` gives `arm64`); any other architecture fails the play until `docker_apt_arch` is set. A limited molecule scenario covers the role's own logic (see [Tests](#tests)); the real Docker Engine is not tested.
|
||||
|
||||
Untested platforms: Ubuntu releases other than 24.04; `meta/main.yml` declares Ubuntu `all`.
|
||||
Ubuntu 26.04 (resolute) is not declared yet: the 26.04 molecule image lacks gnupg, which the scenario needs.
|
||||
|
||||
The role targets Ubuntu hosts only: it installs from Docker's Ubuntu repository, so it does not cover Debian trixie (Proxmox hosts).
|
||||
|
||||
@@ -88,7 +88,7 @@ With any of `docker_daemon_options`, `docker_live_restore`, `docker_log_driver`,
|
||||
|
||||
## Tests
|
||||
|
||||
`molecule/default` runs in CI only (`.gitea/workflows/molecule.yml`, no local runner), on one platform: Ubuntu 24.04 (noble), the `molecule-ubuntu2404` test container (`${MOLECULE_IMAGE}`). A real Docker Engine cannot run there: `dockerd` needs the bridge, iptables rules and a delegated cgroup, and the container has no privileged mode. So the scenario builds a local APT repository, signs it with a throwaway key, and points the role at it with `docker_gpg_url` and `docker_repo_base_url`. The repository holds empty stand-ins for `docker-ce`, `docker-ce-cli` and `containerd.io`. The stand-in `docker-ce` ships a stub `docker.service` (`sleep infinity`) and creates the `docker` group, as the real package does.
|
||||
`molecule/default` runs in CI only (`.gitea/workflows/molecule.yml`, no local runner), on one platform: `${MOLECULE_IMAGE}` (Ubuntu 24.04). A real Docker Engine cannot run there: `dockerd` needs the bridge, iptables rules and a delegated cgroup, and the container has no privileged mode. So the scenario builds a local APT repository, signs it with a throwaway key, and points the role at it with `docker_gpg_url` and `docker_repo_base_url`. The repository holds empty stand-ins for `docker-ce`, `docker-ce-cli` and `containerd.io`. The stand-in `docker-ce` ships a stub `docker.service` (`sleep infinity`) and creates the `docker` group, as the real package does.
|
||||
|
||||
What it shows, with the role's tasks running unchanged:
|
||||
|
||||
|
||||
Reference in new issue
Block a user