feat: run hydra migrations if specified
This commit is contained in:
parent
547eb73d6c
commit
9054f14223
|
@ -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
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
- name: Configure Hydra local database
|
||||
ansible.builtin.include_tasks: hydra-database.yml
|
||||
when: not hydra_use_external_database
|
||||
when: not hydra_use_external_database
|
||||
|
||||
- name: Configure cadoles-pod-hydra-v1
|
||||
template:
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue