jboss-openshift / application-templates

OpenShift application templates supporting JBoss Middleware based applications.
Apache License 2.0
153 stars 303 forks source link

[sso] add support for ConfigMap, so user can import custom realm.json #220

Open pschiffe opened 7 years ago

pschiffe commented 7 years ago

When trying to deploy SSO application to OpenShift automatically (e.g. with ansible), it's currently not possible to provide custom realm configuration which would be imported to the newly created instance. This could be done by supporting ConfigMaps, where user can provide custom realm.json file, which in the end could be automatically imported to the SSO during startup.

I did a POC for this use case, which can be found here: https://github.com/pschiffe/keycloak-demo Modified sso70-https.json template file contains new SSO_IMPORT_FILE parameter and variable and a sso-realm-volume with content of sso-realm ConfigMap.

ecoupal commented 6 years ago

+1

rcernich commented 6 years ago

@iankko FYI.