From 3b7b187a602d37ff61bfe75f8cd5b2d4c7dd76ce Mon Sep 17 00:00:00 2001 From: cmsassot Date: Wed, 14 Sep 2022 12:11:00 +0200 Subject: [PATCH] Ajout variables d'environement hydra-oidc (#3) Reviewed-on: https://forge.cadoles.com/Cadoles/ansible-role-sso/pulls/3 Co-authored-by: cmsassot Co-committed-by: cmsassot --- defaults/main.yml | 1 + templates/cadoles-pod-hydra-oidc-v1.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 7f605bf..d7064be 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -199,6 +199,7 @@ hydra_oidc_post_logout_redirect_url: hydra_oidc_scope: openid email hydra_oidc_client_id: hydra_oidc_client_secret: +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 a2432e9..7dbc700 100644 --- a/templates/cadoles-pod-hydra-oidc-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-oidc-v1.conf.j2 @@ -19,4 +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 key,value in hydra_oidc_additionnal_env.items() %} + -e '{{ key }}={{ value }}' \ + {% endfor %} " \ No newline at end of file