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

kcadm_wrapper.sh: Reformat and always use -r archlinux for convenience

parent 7e3ab62a
#!/usr/bin/env bash
#
# Script that wraps kcadm.sh to securely get our credentials.
# It always operates on the realm `archlinux` for convenience.
#
# Example invocation:
# misc/kcadm_wrapper.sh get realms
......@@ -10,4 +11,10 @@
# See for general kcadm usage:
# https://github.com/keycloak/keycloak-documentation/blob/master/server_admin/topics/admin-cli.adoc
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)
kcadm "$@" \
-r archlinux \
--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