mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-22 07:00:33 +00:00
Replace hostname-based health check URL with localhost. The health check runs on the managed host itself, so it should always target localhost rather than the public-facing keycloak_quarkus_hostname which can be empty or a domain name behind a load balancer. Compose the URL directly from existing production variables (keycloak_quarkus_http_enabled, keycloak_quarkus_http_port, keycloak_quarkus_https_port, keycloak_quarkus_http_relative_path) without introducing intermediate variables. Add .config/molecule/config.yml with shared molecule settings and a new quarkus_nohost test scenario that verifies the role works when keycloak_quarkus_hostname is left at its default empty value. Fixes #428
50 lines
886 B
YAML
50 lines
886 B
YAML
---
|
|
driver:
|
|
name: docker
|
|
|
|
platforms:
|
|
- name: instance
|
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
|
pre_build_image: true
|
|
privileged: true
|
|
command: "/usr/sbin/init"
|
|
exposed_ports:
|
|
- "8080/tcp"
|
|
- "8443/tcp"
|
|
- "8009/tcp"
|
|
- "9000/tcp"
|
|
|
|
provisioner:
|
|
name: ansible
|
|
config_options:
|
|
defaults:
|
|
interpreter_python: auto_silent
|
|
ssh_connection:
|
|
pipelining: false
|
|
playbooks:
|
|
prepare: ../default/prepare.yml
|
|
inventory:
|
|
host_vars:
|
|
localhost:
|
|
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
|
env:
|
|
ANSIBLE_FORCE_COLOR: "true"
|
|
PROXY: "${PROXY}"
|
|
NO_PROXY: "${NO_PROXY}"
|
|
|
|
verifier:
|
|
name: ansible
|
|
|
|
scenario:
|
|
test_sequence:
|
|
- cleanup
|
|
- destroy
|
|
- create
|
|
- prepare
|
|
- converge
|
|
- idempotence
|
|
- side_effect
|
|
- verify
|
|
- cleanup
|
|
- destroy
|