diff --git a/templates/template03-keycloak/Readme.md b/templates/template03-keycloak/Readme.md index abbac80..0cbfe59 100644 --- a/templates/template03-keycloak/Readme.md +++ b/templates/template03-keycloak/Readme.md @@ -9,7 +9,6 @@ | --- | --- | | `keycloak-X.Y.Z.zip` | The installer archive to be downloaded from [here](https://www.keycloak.org/downloads.html) - Distribution powered by Quarkus | | `keycloak.service` | The systemd unit file for Keycloak service | -| `mkcert` | mkcert command line utility to be downloaded [here](https://github.com/FiloSottile/mkcert/releases). Pick the latest binary for amd64 and rename it to `mkcert` | | `rootCA.pem` | The rootCA previously created in your host machine | | `rootCA-key.pem` | The rootCA key previously created in your host machine | | `keycloak-env.conf` | The environment file for the systemd service | diff --git a/templates/template03-keycloak/Vagrantfile b/templates/template03-keycloak/Vagrantfile index 428d542..1df9726 100644 --- a/templates/template03-keycloak/Vagrantfile +++ b/templates/template03-keycloak/Vagrantfile @@ -4,21 +4,17 @@ Vagrant.configure("2") do |config| - config.vm.box = "hibox/focal64" - - config.vm.box_check_update = false - - ## This is the latest box version as of 17/06/2021 - config.vm.box_version = "1.0.1619509541" + config.vm.box = "isc/lxc-ubuntu-22.04" config.vm.provider 'lxd' do |lxd| lxd.api_endpoint = 'https://127.0.0.1:8443' lxd.timeout = 10 lxd.name = 'your-container-name' + lxd.profiles = ['default'] + lxd.project = 'default' # lxd.nesting = nil # lxd.privileged = nil - # lxd.ephemeral = false - # lxd.profiles = ['default'] + # lxd.ephemeral = false # lxd.environment = {} # lxd.config = {} end diff --git a/templates/template03-keycloak/provision.sh b/templates/template03-keycloak/provision.sh index 995f014..4254833 100644 --- a/templates/template03-keycloak/provision.sh +++ b/templates/template03-keycloak/provision.sh @@ -43,7 +43,7 @@ apt update -apt install -y openjdk-11-jdk unzip +apt install -y openjdk-11-jdk unzip mkcert unzip /vagrant/artifacts/${KEYCLOAK_INSTALLER_VERSION}.zip @@ -67,9 +67,9 @@ export CAROOT=/vagrant/artifacts/ -/vagrant/artifacts/mkcert -install +mkcert -install -/vagrant/artifacts/mkcert --cert-file /opt/keycloak/conf/server-crt.pem --key-file /opt/keycloak/conf/server-key.pem "${MACHINE_HOSTNAME}" +mkcert --cert-file /opt/keycloak/conf/server-crt.pem --key-file /opt/keycloak/conf/server-key.pem "${MACHINE_HOSTNAME}" chown kck.kck /opt/keycloak/conf/server-crt.pem /opt/keycloak/conf/server-key.pem systemctl daemon-reload