Optimized keycloak variables

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-17 06:56:26 +02:00
parent 529efc0bd7
commit ab12a933f6
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@ docker:
keycloak: keycloak:
image: "quay.io/keycloak/keycloak" image: "quay.io/keycloak/keycloak"
version: "latest" version: "latest"
name: "keycloak"
database: database:
enabled: true enabled: true

View File

@ -78,5 +78,5 @@
- name: Apply SSH Public Key to user-profile via kcadm - name: Apply SSH Public Key to user-profile via kcadm
shell: | shell: |
docker exec -i {{ container_name }} \ docker exec -i {{ keycloak_container }} \
/opt/keycloak/bin/kcadm.sh update realms/{{ keycloak_realm }} -f {{ keycloak_docker_import_directory }}user-profile.json /opt/keycloak/bin/kcadm.sh update realms/{{ keycloak_realm }} -f {{ keycloak_docker_import_directory }}user-profile.json

View File

@ -1,6 +1,6 @@
application_id: "keycloak" # Internal CyMaIS application id application_id: "keycloak" # Internal CyMaIS application id
database_type: "postgres" # Database which will be used database_type: "postgres" # Database which will be used
keycloak_container: "{{ application_id }}_application" # Name of the keycloack docker container keycloak_container: "{{ applications | get_app_conf(application_id, 'docker.services.keycloak.name', True) }}" # Name of the keycloack docker container
keycloak_host_import_directory: "{{ docker_compose.directories.volumes }}import/" # Directory in which keycloack import files are placed on the host keycloak_host_import_directory: "{{ docker_compose.directories.volumes }}import/" # Directory in which keycloack import files are placed on the host
keycloak_docker_import_directory: "/opt/keycloak/data/import/" # Directory in which keycloack import files are placed in the running docker container keycloak_docker_import_directory: "/opt/keycloak/data/import/" # Directory in which keycloack import files are placed in the running docker container
keycloak_realm: "{{ primary_domain}}" # This is the name of the default realm which is used by the applications keycloak_realm: "{{ primary_domain}}" # This is the name of the default realm which is used by the applications