A cloud-init yaml file that enables boostraping of LXD vm with Keycloak server instance for development and testing
To launch a LXD vm with an instance of Keycloak server to enable you to develop and test application integration with Keycloak Authentication and Authorization server.
lxc launch ubuntu:jammy keycloak-vm --config=user.user-data="$(cat ./keycloak.yaml)" --vm
- IP or fqhn of the PostgreSQL database to use
- The database should be in a different vm, this preserves the data. So you can be able to throw keycloak-vm away for a new one, as you iterate.
- The database name in this config is keycloakdb, ensure it is created.
- The database user, the owner of keycloakdb is keycloak
- The database password in this config is "password", ensure it same as that of "keycloak" user above.
- The KEYCLOAK-ADMIN is "Admin".
- The KEYCLOAK-ADMIN-PASSWORD is "password".
- The hostname which is a fqhn, is "login.xpora.local".
- You can access the server by the hostname or IP.
- You can also set the hostname in the /etc/hosts of host system.