From a3c83fbd86ae30722b7ace04722d4d4be6549582 Mon Sep 17 00:00:00 2001 From: cmsassot Date: Tue, 13 Sep 2022 11:13:49 +0200 Subject: [PATCH] Ajout variables d'environement hydra-oidc --- defaults/main.yml | 2 +- templates/cadoles-pod-hydra-oidc-v1.conf.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 54e8dfc..d7064be 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -199,7 +199,7 @@ hydra_oidc_post_logout_redirect_url: hydra_oidc_scope: openid email hydra_oidc_client_id: hydra_oidc_client_secret: -hydra_oidc_environment_opts: [] +hydra_oidc_additionnal_env: {} hydra_oidc_attributes_rewrite_rules: email: diff --git a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 index e67f6ef..4d7ffbc 100644 --- a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 @@ -19,7 +19,7 @@ PODMAN_ARGS="\ -e 'CLIENT_ID_FC={{ hydra_oidc_client_id }}' \ -e 'CLIENT_SECRET_FC={{ hydra_oidc_client_secret }}' \ -e 'TRUSTED_PROXIES=127.0.0.1,10.0.2.0/24' \ - {% for item in hydra_oidc_environment_opts %} - -e '{{ item.environment_var_name }}={{ item.value }}' \ + {% for item in hydra_oidc_additionnal_env.values() %} + -e '{{ item.name }}={{ item.value }}' \ {% endfor %} " \ No newline at end of file