From 8d0e7026e41a5fb9bf5c1fd3b2c0985ad6468ba2 Mon Sep 17 00:00:00 2001 From: cmsassot Date: Fri, 9 Sep 2022 15:29:21 +0200 Subject: [PATCH] =?UTF-8?q?Configuration=20pour=20personnalisation=20du=20?= =?UTF-8?q?th=C3=A8me=20sur=20hydra-dispatcher=20(#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout des variables nécessaires pour la personnalisation du [thème](https://forge.cadoles.com/CNOUS/hydra-dispatcher-mse-theme) sur [hydra-dispatcher](https://forge.cadoles.com/Cadoles/hydra-dispatcher) Reviewed-on: https://forge.cadoles.com/Cadoles/ansible-role-sso/pulls/1 Co-authored-by: cmsassot Co-committed-by: cmsassot --- defaults/main.yml | 1 + templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4db82a8..7f605bf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -70,6 +70,7 @@ hydra_dispatcher_available_locales: - en hydra_dispatcher_sentry_dsn: hydra_dispatcher_sentry_environment: +hydra_dispatcher_mounts: [] # Hydra Passwordless configuration diff --git a/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 b/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 index 19dcad7..d1333fb 100644 --- a/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 +++ b/templates/cadoles-pod-hydra-dispatcher-v1.conf.j2 @@ -5,7 +5,10 @@ PODMAN_ARGS="\ --network=slirp4netns:allow_host_loopback=true \ --tz=local \ -p 127.0.0.1:3000:80 \ - -v /etc/hydra-dispatcher/conf.d:/var/www/config/hydra \ + -v /etc/hydra-dispatcher/conf.d:/var/www/config/hydra \ + {% for item in hydra_dispatcher_mounts %} + -v "{{ item.host }}:{{ item.container }}" \ + {% endfor %} -e APP_ENV=prod \ -e 'APP_DEBUG={{ hydra_dispatcher_debug }}' \ -e HYDRA_ADMIN_BASE_URL=http://10.0.2.2:4445 \