--- # Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404 # (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in # .gitea/workflows/molecule.yml. Needs outbound network: the role installs the real package from # pkgs.tailscale.com. The node never joins a tailnet (tailscale_up false), and tailscaled runs with # userspace networking because a container may have no /dev/net/tun. The containers run systemd as # PID 1 with a writable cgroup; no privileged mode. driver: name: docker platforms: - name: ${KAMINO_RUN_ID:-local}-tailscale-noble labels: net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}" 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 - name: ${KAMINO_RUN_ID:-local}-tailscale-resolute labels: net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}" image: ${MOLECULE_IMAGE_2604} 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 # One source for every play, so the converge and the plays in verify.yml start from the same # valid input. inventory: group_vars: all: tailscale_up: false tailscale_userspace_networking: true verifier: name: ansible scenario: # molecule's default sequence minus both destroys (scripts/run_molecule_scenarios.sh removes the # containers as soon as this scenario ends; after a local run, run `molecule destroy` yourself), # plus a check before the converge (fresh host) and one after it (configured host). test_sequence: - dependency - cleanup - syntax - create - prepare - check - converge - check - idempotence - side_effect - verify - cleanup