Skip to content

somcomunitats-coop/auth-ec-inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comunitats Energetiques Keycloak Ansible inventories

This repository stores hosts informations and related variables for this specific instance of Keycloak.

Requirements

  1. Clone this repo and keycloak-provisioning in the same directory

  2. 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
  3. Go to keycloak-provisioning directory and install its Ansible dependencies:

    ansible-galaxy install -r requirements.yml
  4. Run ansible-playbook command pointing to the inventory/hosts file 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
  5. Access to the server with the browser:

About

Inventory for our auth server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages