1
0
Fork 0

zsh: cleanup dijkstra setup

This commit is contained in:
Luca Bilke 2024-10-16 19:51:54 +02:00
parent 94a37e205d
commit 8d069e6d48
1 changed files with 19 additions and 5 deletions

View File

@ -5,17 +5,31 @@ export KUBECONFIG_DIRS="
/home/luca/Documents/dev/schneiderfilz/sf-ansible/classes/kubeconfig
"
alias vault_login_tralios="vault login -address=https://vault.tralios.de -token-only -method=userpass username=luca | tee /home/luca/Documents/dev/tralios/ansible/classes/../.tralios-vault-token"
alias vault_login_tralios='
vault login \
-address=https://vault.tralios.de \
-token-only \
-method=userpass \
username=luca |
tee ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token
'
function vault_tralios {
export VAULT_ADDR=https://vault.tralios.de
export VAULT_TOKEN=$(cat /home/luca/Documents/dev/tralios/ansible/classes/../.tralios-vault-token)
export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token)
vault
}
alias vault_login_schneiderfilz="VAULT_ADDR=https://vault.schneiderfilz.com vault login -address=https://vault.schneiderfilz.com -token-only -method=userpass username=luca | tee /home/luca/Documents/dev/schneiderfilz/sf-ansible/classes/../.schneiderfilz-vault-token"
alias vault_login_schneiderfilz='
VAULT_ADDR=https://vault.schneiderfilz.com \
vault login \
-address=https://vault.schneiderfilz.com \
-token-only \
-method=userpass \
username=luca |
tee ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token
'
function vault_schneiderfilz {
export VAULT_ADDR=https://vault.schneiderfilz.com
export VAULT_TOKEN=$(cat /home/luca/Documents/dev/schneiderfilz/sf-ansible/classes/../.schneiderfilz-vault-token)
export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token)
vault $@
}