Files
ansible-middleware.keycloak/molecule/quarkus_ha_26.4_below/molecule.yml
T
Aleksandr ManginandClaude Opus 5.5 68a1f3d28b molecule: make scenarios work on containerized CI runners
Since the molecule jobs moved to self-hosted container runners, molecule
talks to a Docker daemon that does not share the runner's filesystem or
network namespace:

- quarkus_ha*: drop the postgresql.conf bind mount (the workspace path
  does not exist on the daemon side) and pass listen_addresses via -c
- quarkus, quarkus_devmode: fetch the openid configuration from the
  instance with ansible.builtin.uri instead of curl | jq on the runner,
  and drop the fixed host published_ports that are no longer needed
- quarkus_nohost: add the missing roles symlink

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 09:44:24 +01:00

79 lines
1.6 KiB
YAML

---
driver:
name: docker
platforms:
- name: instance1
image: registry.access.redhat.com/ubi9/ubi-init:latest
pre_build_image: true
privileged: true
command: "/usr/sbin/init"
groups:
- keycloak
networks:
- name: rhbk
exposed_ports:
- "8080/tcp"
- "8443/tcp"
- "9000/tcp"
- name: instance2
image: registry.access.redhat.com/ubi9/ubi-init:latest
pre_build_image: true
privileged: true
command: "/usr/sbin/init"
groups:
- keycloak
networks:
- name: rhbk
exposed_ports:
- "8080/tcp"
- "8443/tcp"
- "9000/tcp"
- name: postgres
image: ubuntu/postgres:14-22.04_beta
pre_build_image: true
privileged: true
command: "postgres -c listen_addresses=*"
groups:
- database
networks:
- name: rhbk
exposed_ports:
- "5432/tcp"
env:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: mysecretpass
POSTGRES_DB: keycloak
POSTGRES_HOST_AUTH_METHOD: trust
provisioner:
name: ansible
config_options:
defaults:
interpreter_python: auto_silent
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
host_vars:
localhost:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
env:
ANSIBLE_FORCE_COLOR: "true"
PYTHONHTTPSVERIFY: 0
verifier:
name: ansible
scenario:
test_sequence:
- cleanup
- destroy
- create
- prepare
- converge
- idempotence
- side_effect
- verify
- cleanup
- destroy