ci(molecule): use molecule-ubuntu2404 0.1.6 and drop the docker prepare gnupg task #120
No files matched your search
@@ -74,7 +74,7 @@ jobs:
|
||||
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
|
||||
# one locally.
|
||||
MOLECULE_IMAGE: >-
|
||||
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.5@sha256:57123de013ad0ca0c4c64723f7f86636de07a1d6a40a7bc4f064ec664cd463f9
|
||||
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.6@sha256:f1bf4d208aa8f1626f797348a120541af3d4445cb2da0b948d94425df1741909
|
||||
# The same for Ubuntu 26.04, the release the hosts are moving to; used by
|
||||
# `image: ${MOLECULE_IMAGE_2604}` in extensions/molecule/image-smoke-2604.
|
||||
MOLECULE_IMAGE_2604: >-
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
trivial:
|
||||
- docker - the molecule scenario takes gnupg from the molecule image, so the README no longer lists it among what the scenario needs the Ubuntu mirrors for.
|
||||
@@ -33,6 +33,7 @@
|
||||
- ufw
|
||||
- fail2ban
|
||||
- openssh-server
|
||||
- gnupg
|
||||
|
||||
- name: Query the units a role scenario relies on
|
||||
ansible.builtin.systemd:
|
||||
|
||||
@@ -59,7 +59,7 @@ What it shows, with the role's tasks running unchanged:
|
||||
- The argument check refuses a mapping for `docker_users` and a non-boolean `docker_remove`.
|
||||
- A second run changes nothing (molecule's idempotence check).
|
||||
|
||||
What it does not show: that the upstream repository and key at `download.docker.com` are reachable and valid, that the real packages install, that `dockerd` starts, anything about container networking or iptables, the `docker_update` path (`tasks/update.yml`), and removal without `docker_remove_data` (the removal stops the unit first, so it can run only once per install). It needs the Ubuntu mirrors, for `gnupg` in `prepare.yml` and the `curl` the role installs. These gaps are a known residual risk of the role.
|
||||
What it does not show: that the upstream repository and key at `download.docker.com` are reachable and valid, that the real packages install, that `dockerd` starts, anything about container networking or iptables, the `docker_update` path (`tasks/update.yml`), and removal without `docker_remove_data` (the removal stops the unit first, so it can run only once per install). It needs the Ubuntu mirrors, for the `curl` the role installs. These gaps are a known residual risk of the role.
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
@@ -3,20 +3,15 @@
|
||||
# bridge, iptables and a delegated cgroup), so the role installs stand-in packages from a
|
||||
# local APT repository. The repository is built and signed here, with a throwaway key, so the
|
||||
# role's own tasks run unchanged: fetch the key, write the source line, install, enable and
|
||||
# start the unit, join the group. Like the pihole and system_baseline scenarios, this needs
|
||||
# the Ubuntu mirrors for gnupg and for the curl the role installs.
|
||||
# start the unit, join the group. gnupg, which signs the repository, is part of the molecule
|
||||
# image. Like the pihole and system_baseline scenarios, this needs the Ubuntu mirrors for the
|
||||
# curl the role installs.
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
vars:
|
||||
docker_molecule_repo: /srv/docker-stub-repo
|
||||
docker_molecule_work: /var/tmp/docker-stub-work
|
||||
tasks:
|
||||
- name: Install gnupg, which signs the stand-in repository
|
||||
ansible.builtin.apt:
|
||||
name: gnupg
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Copy the repository builder
|
||||
ansible.builtin.copy:
|
||||
src: build-stub-repo.sh
|
||||
|
||||
Reference in new issue
Block a user