Build / build (pull_request) Successful in 21s
Lint / renovate-config (pull_request) Successful in 4s
Molecule / select (pull_request) Successful in 3s
Lint / lint (pull_request) Successful in 5m20s
Molecule / scenarios (pull_request) Successful in 37m31s
Molecule / Result (pull_request) Successful in 1s
Go opens a :: listener dual-stack, so it already serves 127.0.0.1 and a second loopback listener failed to bind with "address already in use". :: again gets no loopback listener. The TLS file checks did not follow symlinks, so a certbot-style live/ path was refused as not a regular file; the stat now follows them, and the scenario reaches its certificate and key through symlinks. Also: - an owner or group with no name gives the readability message, not a templating error - openbao_port and openbao_cluster_port must be 1024 or higher: the unit grants no capability to bind a lower port - SystemCallErrorNumber=EPERM, so a filtered syscall fails instead of killing the server with SIGSYS - a warning when the installed binary differs from openbao_version, since main does not change an installed binary - the TLS file inputs are type path in the argument spec Refs: #536 Assisted-by: Claude Code
73 lines
2.5 KiB
YAML
73 lines
2.5 KiB
YAML
---
|
|
# 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: prepare installs openssl with apt and the
|
|
# converge downloads the pinned OpenBao release from GitHub. prepare.yml builds a throwaway CA and
|
|
# server certificate. The container runs systemd as PID 1 with a writable cgroup; no privileged mode.
|
|
driver:
|
|
name: docker
|
|
platforms:
|
|
- name: ${KAMINO_RUN_ID:-local}-openbao-instance
|
|
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
|
|
security_opts:
|
|
- apparmor=unconfined
|
|
- name: ${KAMINO_RUN_ID:-local}-openbao-2604-instance
|
|
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
|
|
security_opts:
|
|
- apparmor=unconfined
|
|
provisioner:
|
|
name: ansible
|
|
# One source for every play, so a verify play that runs the role again renders the same
|
|
# configuration and the idempotence step reruns converge with identical inputs.
|
|
inventory:
|
|
group_vars:
|
|
all:
|
|
openbao_test_tls_dir: /etc/molecule-tls
|
|
# Symlinks into the files, as in certbot's live/ layout.
|
|
openbao_tls_cert_file: "{{ openbao_test_tls_dir }}/live/server.crt"
|
|
openbao_tls_key_file: "{{ openbao_test_tls_dir }}/live/server.key"
|
|
openbao_tls_ca_file: "{{ openbao_test_tls_dir }}/ca.crt"
|
|
# The role's pinned version and checksums, for the failure cases that change other inputs.
|
|
openbao_test_defaults: "{{ lookup('ansible.builtin.file', playbook_dir ~ '/../../defaults/main.yml') | from_yaml }}"
|
|
verifier:
|
|
name: ansible
|
|
scenario:
|
|
# molecule's default sequence minus both destroys: scripts/run_molecule_scenarios.sh removes the
|
|
# container as soon as this scenario ends. After a local run, run `molecule destroy` yourself.
|
|
# A check runs before the converge (fresh host) and after it (configured host).
|
|
test_sequence:
|
|
- dependency
|
|
- cleanup
|
|
- syntax
|
|
- create
|
|
- prepare
|
|
- check
|
|
- converge
|
|
- check
|
|
- idempotence
|
|
- side_effect
|
|
- verify
|
|
- cleanup
|