feat: reload hydra clients instead of restart cadoles-pod-hydra-v1 containers

This commit is contained in:
wpetit 2022-07-22 12:12:09 +02:00
parent d4c78b00de
commit 3452c72f98
4 changed files with 18 additions and 4 deletions

View File

@ -33,4 +33,8 @@
service: service:
name: cadoles-pod-shibboleth-sp-v3 name: cadoles-pod-shibboleth-sp-v3
state: restarted state: restarted
become: true become: true
- name: Reload hydra clients
ansible.builtin.include_tasks:
file: hydra-reload-clients.yml

View File

@ -0,0 +1,11 @@
---
- name: Start cadoles-pod-hydra-v1
service:
name: cadoles-pod-hydra-v1
state: started
become: true
- name: Reload hydra clients
command: podman exec -it cadoles-pod-hydra-v1 /bin/sh -c 'HYDRA_SERVE_ADMIN_SCHEME=http reload-hydra-clients'
become: true

View File

@ -57,7 +57,7 @@
dest: "/etc/hydra/clients.d/{{ item.client_id }}.json" dest: "/etc/hydra/clients.d/{{ item.client_id }}.json"
with_items: "{{ hydra_clients }}" with_items: "{{ hydra_clients }}"
notify: notify:
- Restart cadoles-pod-hydra-v1 - Reload hydra clients
become: true become: true
- name: Configure cadoles-pod-hydra-v1 - name: Configure cadoles-pod-hydra-v1

View File

@ -11,9 +11,8 @@
redirect_uris: ["{{ oidc_test_app_public_base_url }}/oauth2/callback"] redirect_uris: ["{{ oidc_test_app_public_base_url }}/oauth2/callback"]
post_logout_redirect_uris: ["{{ oidc_test_app_public_base_url }}"] post_logout_redirect_uris: ["{{ oidc_test_app_public_base_url }}"]
logo_uri: https://www.cadoles.com/images/logo.svg logo_uri: https://www.cadoles.com/images/logo.svg
notify: notify:
- Restart cadoles-pod-hydra-v1 - Reload hydra clients
become: true become: true
- name: Start oidc-test app - name: Start oidc-test app