From 5fa9243bcd7c987ba1730bb15ecee9915be01bd8 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Fri, 14 Jan 2022 09:54:26 +0100 Subject: [PATCH] fix: keycloak_frontend_url needs scheme --- molecule/default/molecule.yml | 2 +- molecule/default/prepare.yml | 4 +++- roles/keycloak/README.md | 2 +- roles/keycloak/defaults/main.yml | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 68adf70..c59579c 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -3,7 +3,7 @@ dependency: name: shell command: ansible-galaxy collection install -r molecule/default/requirements.yml -p $HOME/.ansible/collections --force-with-deps driver: - name: docker + name: podman platforms: - name: instance image: registry.access.redhat.com/ubi8/ubi-init:latest diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index a0fd601..425c16d 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -2,7 +2,9 @@ - name: Prepare hosts: all tasks: + - name: Disable beta repos + command: yum config-manager --disable '*beta*' - name: Install sudo yum: name: sudo - state: present \ No newline at end of file + state: present diff --git a/roles/keycloak/README.md b/roles/keycloak/README.md index 6b0bbd9..745c5d3 100644 --- a/roles/keycloak/README.md +++ b/roles/keycloak/README.md @@ -47,7 +47,7 @@ The following variables are _required_ only when `keycloak_ha_enabled` is True: | Variable | Description | Default | |:---------|:------------|:---------| |`keycloak_modcluster_url` | URL for the modcluster reverse proxy | `localhost` | -|`keycloak_frontend_url` | frontend URL for keycloak endpoints when a reverse proxy is used | `localhost` | +|`keycloak_frontend_url` | frontend URL for keycloak endpoints when a reverse proxy is used | `http://localhost` | |`keycloak_jdbc_engine` | backend database flavour when db is enabled: [ postgres, mariadb ] | `postgres` | |`infinispan_url` | URL for the infinispan remote-cache server | `localhost:11122` | |`infinispan_user` | username for connecting to infinispan | `supervisor` | diff --git a/roles/keycloak/defaults/main.yml b/roles/keycloak/defaults/main.yml index f04c2eb..a75fc70 100644 --- a/roles/keycloak/defaults/main.yml +++ b/roles/keycloak/defaults/main.yml @@ -50,7 +50,7 @@ keycloak_force_install: False ### mod_cluster reverse proxy keycloak_modcluster_url: localhost -keycloak_frontend_url: localhost +keycloak_frontend_url: http://localhost ### infinispan remote caches access (hotrod) infinispan_user: supervisor