This repository stores hosts informations and related variables for this specific instance of Keycloak.
-
Clone this repo and keycloak-provisioning in the same directory
-
If you want to test this set up locally, install devenv and do:
cd keycloak-ccee-inventory devenv # this creates the lxc container and sets its hostname
-
Go to
keycloak-provisioningdirectory and install its Ansible dependencies:ansible-galaxy install -r requirements.yml
-
Run
ansible-playbookcommand pointing to theinventory/hostsfile of this repository:- development local mode
# tell it to keep it local with limit=dev # use the user root the first time to create the other users: --user=root ansible-playbook playbooks/sys_admins.yml -i ../keycloak-ccee-inventory/inventory/hosts --limit=dev ansible-playbook playbooks/provision.yml -i ../keycloak-ccee-inventory/inventory/hosts --limit=dev
- staging mode
# tell it to keep it on staging with limit=test ansible-playbook playbooks/provision.yml -i ../keycloak-ccee-inventory/inventory/hosts --limit=test --ask-vault-pass- staging mode
# tell it to keep it on prod with limit=prod ansible-playbook playbooks/provision.yml -i ../keycloak-ccee-inventory/inventory/hosts --limit=prod --ask-vault-pass -
Access to the server with the browser:
- In development visit http://keycloak-ccee.local:8080