2021-12-14 10:26:42 +00:00
|
|
|
---
|
|
|
|
### Configuration specific to keycloak
|
|
|
|
keycloak_version: 9.0.2
|
|
|
|
keycloak_archive: keycloak-{{ keycloak_version }}.zip
|
|
|
|
keycloak_download_url: https://downloads.jboss.org/keycloak/{{ keycloak_version }}/{{ keycloak_archive }}
|
|
|
|
keycloak_local_download_dest: '{{ "~/keycloak_download" | expanduser }}'
|
|
|
|
keycloak_installdir: "{{ keycloak_dest }}/keycloak-{{ keycloak_version }}"
|
|
|
|
|
|
|
|
### Configuration specific to Red Hat Single Sing-On
|
|
|
|
keycloak_rhsso_enable: "{{ True if rhsso_rhn_id is defined else False }}"
|
|
|
|
keycloak_rhsso_client_adapter_rhn_id: '101951'
|
|
|
|
keycloak_rhsso_saml_adapter_rhn_id: '101901'
|
|
|
|
keycloak_rhsso_version: 7.5
|
|
|
|
keycloak_rhsso_archive: rh-sso-{{ keycloak_rhsso_version }}-server-dist.zip
|
|
|
|
keycloak_rhsso_installdir: "{{ keycloak_dest }}/rh-sso-{{ keycloak_rhsso_version }}"
|
2021-12-15 12:55:41 +00:00
|
|
|
keycloak_rhsso_base_url: 'https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId='
|
2021-12-14 10:26:42 +00:00
|
|
|
|
|
|
|
### Install location and service settings
|
|
|
|
keycloak_dest: /opt/keycloak
|
|
|
|
keycloak_jboss_home: "{{ keycloak_rhsso_installdir if rhsso_rhn_id is defined else keycloak_installdir }}"
|
|
|
|
keycloak_config_dir: "{{ keycloak_jboss_home }}/standalone/configuration"
|
|
|
|
keycloak_service_user: keycloak
|
|
|
|
keycloak_service_group: keycloak
|
2021-12-14 15:20:26 +00:00
|
|
|
keycloak_service_pidfile: "/run/keycloak.pid"
|
2021-12-14 10:26:42 +00:00
|
|
|
keycloak_service_logfile: "{{ keycloak_dest }}/keycloak.log"
|
|
|
|
|
|
|
|
### Keycloak configuration settings
|
|
|
|
keycloak_bind_address: 0.0.0.0
|
|
|
|
keycloak_host: localhost
|
|
|
|
keycloak_http_port: 8080
|
|
|
|
keycloak_https_port: 8443
|
|
|
|
keycloak_management_http_port: 9990
|
|
|
|
keycloak_management_https_port: 9993
|
|
|
|
keycloak_java_opts: "-Xms1024m -Xmx20480m -XX:MaxPermSize=768m"
|
|
|
|
keycloak_url: "http://{{ keycloak_host }}:{{ keycloak_http_port }}"
|
|
|
|
keycloak_management_url: "http://{{ keycloak_host }}:{{ keycloak_management_http_port }}"
|
|
|
|
# enable auto configuration for database backend, clustering and remote caches on infinispan
|
|
|
|
keycloak_ha_enabled: False
|
2021-12-17 13:56:28 +00:00
|
|
|
keycloak_db_enabled: False
|
2021-12-14 10:26:42 +00:00
|
|
|
|
|
|
|
# keycloak administration console user
|
|
|
|
keycloak_admin_user: admin
|
|
|
|
|
|
|
|
keycloak_auth_realm: master
|
|
|
|
keycloak_auth_client: admin-cli
|
|
|
|
|
|
|
|
keycloak_force_install: False
|
|
|
|
|
|
|
|
keycloak_modcluster:
|
|
|
|
enabled: "{{ keycloak_ha_enabled }}"
|
2021-12-15 11:33:42 +00:00
|
|
|
reverse_proxy_url: "{{ keycloak_modcluster_url | default('localhost') }}"
|
2021-12-14 10:26:42 +00:00
|
|
|
|
|
|
|
keycloak_remotecache:
|
|
|
|
enabled: "{{ keycloak_ha_enabled }}"
|
2021-12-15 11:33:42 +00:00
|
|
|
username: "{{ infinispan_user | default('supervisor') }}"
|
|
|
|
password: "{{ infinispan_pass | default('supervisor') }}"
|
2021-12-14 10:26:42 +00:00
|
|
|
realm: default
|
2021-12-15 11:33:42 +00:00
|
|
|
server_name: "{{ infinispan_url | default('localhost') }}"
|
2021-12-14 10:26:42 +00:00
|
|
|
trust_store_path: /path/to/jks/keystore
|
|
|
|
trust_store_password: changeme
|
|
|
|
|
2021-12-17 13:56:28 +00:00
|
|
|
keycloak_jdbc_engine: postgres
|
2021-12-14 10:26:42 +00:00
|
|
|
keycloak_jdbc:
|
|
|
|
postgres:
|
2021-12-17 13:56:28 +00:00
|
|
|
enabled: "{{ keycloak_ha_enabled and keycloak_jdbc_engine == 'postgres' }}"
|
2021-12-14 10:26:42 +00:00
|
|
|
driver_module_name: "org.postgresql"
|
|
|
|
driver_module_dir: "{{ keycloak_jboss_home }}/modules/org/postgresql/main"
|
|
|
|
driver_version: 9.4.1212
|
|
|
|
driver_jar_filename: "postgresql-9.4.1212.jar"
|
|
|
|
driver_jar_url: "https://repo.maven.apache.org/maven2/org/postgresql/postgresql/9.4.1212/postgresql-9.4.1212.jar"
|
2021-12-15 11:33:42 +00:00
|
|
|
connection_url: "{{ postgres_jdbc_url | default('jdbc:postgresql://localhost:5432/keycloak') }}"
|
|
|
|
db_user: "{{ postgres_db_user | default('keycloak-user') }}"
|
|
|
|
db_password: "{{ postgres_db_pass | default('keycloak-pass') }}"
|
2021-12-17 13:56:28 +00:00
|
|
|
mariadb:
|
|
|
|
enabled: "{{ keycloak_ha_enabled and keycloak_jdbc_engine == 'mariadb' }}"
|
|
|
|
driver_module_name: "org.mariadb"
|
|
|
|
driver_module_dir: "{{ keycloak_jboss_home }}/modules/org/mariadb/main"
|
|
|
|
driver_version: 2.7.4
|
|
|
|
driver_jar_filename: "mariadb-java-client-2.7.4.jar"
|
|
|
|
driver_jar_url: "https://repo1.maven.org/maven2/org/mariadb/jdbc/mariadb-java-client/2.7.4/mariadb-java-client-2.7.4.jar"
|
|
|
|
connection_url: "{{ mariadb_jdbc_url | default('jdbc:mariadb://localhost:3306/keycloak') }}"
|
|
|
|
db_user: "{{ mariadb_db_user | default('keycloak-user') }}"
|
|
|
|
db_password: "{{ mariadb_db_pass | default('keycloak-pass') }}"
|