From 0fbf454279d34a21a8053c525a27ab448faed9b9 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Thu, 7 Dec 2023 11:00:28 +0100 Subject: [PATCH] ci: test alternate certs dir --- molecule/quarkus/converge.yml | 4 ++-- molecule/quarkus/prepare.yml | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/molecule/quarkus/converge.yml b/molecule/quarkus/converge.yml index 686494d..1b989ce 100644 --- a/molecule/quarkus/converge.yml +++ b/molecule/quarkus/converge.yml @@ -8,8 +8,8 @@ keycloak_quarkus_host: instance keycloak_quarkus_log: file keycloak_quarkus_https_key_file_enabled: True - keycloak_quarkus_key_file: "{{ keycloak.home }}/conf/key.pem" - keycloak_quarkus_cert_file: "{{ keycloak.home }}/conf/cert.pem" + keycloak_quarkus_key_file: "/opt/keycloak/certs/key.pem" + keycloak_quarkus_cert_file: "/opt/keycloak/certs/cert.pem" keycloak_quarkus_log_target: /tmp/keycloak roles: - role: keycloak_quarkus diff --git a/molecule/quarkus/prepare.yml b/molecule/quarkus/prepare.yml index f6a556d..13d85a8 100644 --- a/molecule/quarkus/prepare.yml +++ b/molecule/quarkus/prepare.yml @@ -1,8 +1,6 @@ --- - name: Prepare hosts: all - vars: - version: "{{ '22.0.6' if rhbk_enable is defined and rhbk_enable else '23.0.1' }}" tasks: - name: Install sudo ansible.builtin.yum: @@ -21,13 +19,13 @@ - name: Create conf directory # risky-file-permissions in test user account does not exist yet ansible.builtin.file: state: directory - path: "/opt/keycloak/keycloak-{{ version }}/conf/" + path: "/opt/keycloak/certs/" mode: 0755 - name: Copy certificates ansible.builtin.copy: src: "{{ item }}" - dest: "/opt/keycloak/keycloak-{{ version }}/conf/{{ item }}" + dest: "/opt/keycloak/certs/{{ item }}" mode: 0444 loop: - cert.pem