From c7f2af040a8edb528c7abc564c326dc3b6a57ed7 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 11 Nov 2024 20:34:20 +0100 Subject: [PATCH] zsh: asmara host.zsh --- asmara/.config/zsh/config/host.zsh | 21 +++++++++++++++++++++ fallback/.config/zsh/{ => config}/host.zsh | 0 2 files changed, 21 insertions(+) create mode 100644 asmara/.config/zsh/config/host.zsh rename fallback/.config/zsh/{ => config}/host.zsh (100%) diff --git a/asmara/.config/zsh/config/host.zsh b/asmara/.config/zsh/config/host.zsh new file mode 100644 index 000000000..e101a7262 --- /dev/null +++ b/asmara/.config/zsh/config/host.zsh @@ -0,0 +1,21 @@ +export VAULT_ADDR=https://vault.tralios.de + +export KUBECONFIG_DIRS=" +/home/luca/Documents/dev/tralios/ansible/classes/kubeconfig +/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" +function vault_tralios { + export VAULT_ADDR=https://vault.tralios.de + export VAULT_TOKEN=$(cat /home/luca/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" +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) + vault $@ +} + diff --git a/fallback/.config/zsh/host.zsh b/fallback/.config/zsh/config/host.zsh similarity index 100% rename from fallback/.config/zsh/host.zsh rename to fallback/.config/zsh/config/host.zsh