feat: run hydra migrations if specified

This commit is contained in:
wpetit 2023-10-25 17:55:54 +02:00
parent 547eb73d6c
commit 9054f14223
2 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,7 @@ cadoles_pod_hydra_ldap_v1_package_version: '*'
# Hydra database configuration
hydra_use_external_database: false
hydra_auto_migrate: false
hydra_database_name: hydra
hydra_database_user: hydra
hydra_database_password: hydra

View File

@ -29,6 +29,11 @@
state: started
become: true
- name: Migrate Hydra database schema
command: podman exec -it cadoles-pod-hydra-v1 migrate-hydra-schema
become: true
when: hydra_auto_migrate
- name: Create hydra-clients
template:
src: hydra-client.json.j2