.gitea/workflows/molecule.yml runs every molecule scenario of the Collection on the kamino-molecule host-executor label of kamino-runner (the Docker daemon of the runner LXC, no job container, no Docker socket handed out), against the molecule-ubuntu2404 image pinned by tag and digest. Scenarios are discovered: extensions/molecule/*/ and roles/*/molecule/*/, so the wave-1 roles only add their scenario directory. extensions/molecule/image-smoke tests the image itself: Ubuntu 24.04, systemd as PID 1 and reachable over the container connection, the packages the roles manage, ssh enabled, the python bindings Ansible needs, NET_ADMIN. A rebuilt or re-pinned image therefore has to pass before a role scenario trusts it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
28 lines
755 B
YAML
28 lines
755 B
YAML
---
|
|
# Tests the molecule test image itself (images/molecule-ubuntu2404): the contract the
|
|
# role scenarios rely on. Same instance settings as a role scenario: systemd needs a
|
|
# writable cgroup, the firewall tools need NET_ADMIN, nothing is privileged. The image
|
|
# comes from the environment (MOLECULE_IMAGE, set by .gitea/workflows/molecule.yml).
|
|
driver:
|
|
name: docker
|
|
platforms:
|
|
- name: image-smoke
|
|
image: ${MOLECULE_IMAGE}
|
|
pre_build_image: true
|
|
pull: true
|
|
command: /sbin/init
|
|
cgroupns_mode: host
|
|
volumes:
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
|
tmpfs:
|
|
- /run
|
|
- /run/lock
|
|
capabilities:
|
|
- NET_ADMIN
|
|
security_opts:
|
|
- apparmor=unconfined
|
|
provisioner:
|
|
name: ansible
|
|
verifier:
|
|
name: ansible
|