Skip to content

A cloud-init yaml file that enables boostraping of LXD vm with Keycloak server instance for development and testing

Notifications You must be signed in to change notification settings

bitxplora/keycloak-cloud-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

keycloak-cloud-init

A cloud-init yaml file that enables boostraping of LXD vm with Keycloak server instance for development and testing


Get Started

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

Things to note or adjust to your need before starting:

  • 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.

About

A cloud-init yaml file that enables boostraping of LXD vm with Keycloak server instance for development and testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published