add consul/vault aliases

This commit is contained in:
Ben Vincent 2024-06-01 13:37:43 +10:00
parent 8fafb14b77
commit a8452abee8

View File

@ -14,6 +14,18 @@ fi
export ANSIBLE_NOCOWS=1 export ANSIBLE_NOCOWS=1
export ANSIBLE_VAULT_PASSWORD_FILE=$HOME/.local/bin/ansible-vault-pass-client export ANSIBLE_VAULT_PASSWORD_FILE=$HOME/.local/bin/ansible-vault-pass-client
# VAULT
export VAULT_ADDR=https://vault.service.consul:8200
vaultlogin () {
vault login $(pass show personal/vault/syd1/token)
}
# CONSUL: https://developer.hashicorp.com/consul/commands
export CONSUL_HTTP_ADDR=consul.service.consul
export CONSUL_HTTP_TOKEN_FILE=$HOME/.config/consul/token.secret
export CONSUL_HTTP_SSL=true
export CONSUL_HTTP_SSL_VERIFY=true
# set MPD host # set MPD host
export MPD_HOST="$HOME/.config/mpd/socket" export MPD_HOST="$HOME/.config/mpd/socket"