Verified Commit fd276af3 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Add kcadm wrapper for keycloak

This wrapper automatically handles auth and server via Ansible vault information that we have already.
parent 144d9e33
#!/usr/bin/env bash
#
# Script that wraps kcadm.sh to securely get our credentials.
#
# Example invocation:
# misc/kcadm_wrapper.sh get realms
#
kcadm "$@" --no-config --server https://accounts.archlinux.org/auth --realm master --user $(misc/get_key.py group_vars/all/vault_keycloak.yml vault_keycloak_admin_user) --password $(misc/get_key.py group_vars/all/vault_keycloak.yml vault_keycloak_admin_password)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment