diff --git a/EtcFiles/profile.d/shadowarch-ansible.sh b/EtcFiles/profile.d/shadowarch-ansible.sh index 4ad9045..1fcb88c 100644 --- a/EtcFiles/profile.d/shadowarch-ansible.sh +++ b/EtcFiles/profile.d/shadowarch-ansible.sh @@ -1,7 +1,7 @@ ### Ansible ### source /etc/profile.d/shadowarch-shell-environment.sh -export ANSIBLE_VAULT_PASSWORD_FILE=$HOME/password-store/${organization}.vault.password export ANSIBLE_VAULT_FILE=$HOME/password-store/${organization}.vault +export ANSIBLE_VAULT_PASSWORD_FILE="${ANSIBLE_VAULT_FILE}.password" alias ansible='/usr/bin/ansible -e @${ANSIBLE_VAULT_FILE}' alias ansible-playbook='/usr/bin/ansible-playbook -e @${ANSIBLE_VAULT_FILE}' alias vault='/usr/bin/ansible-vault edit ${ANSIBLE_VAULT_FILE}' diff --git a/EtcFiles/profile.d/shadowarch-ssh.sh b/EtcFiles/profile.d/shadowarch-ssh.sh index 65922f3..339e8f4 100644 --- a/EtcFiles/profile.d/shadowarch-ssh.sh +++ b/EtcFiles/profile.d/shadowarch-ssh.sh @@ -13,6 +13,16 @@ if [ -n "$SSH_AUTH_SOCK" ] && [ `ssh-add -L | grep -c no\ identities` -eq 1 ]; t ssh-add ssh-add -L fi +function verify-ssh-pubkeys() { + printf Keyfiles\ + ls -1 ~/.ssh/*.pub | wc -l + wc -l ~/.ssh/authorized_keys + for i in ~/.ssh/*.pub; do + key=`cut -f 3 -d " " "$i"` + printf "%s: " "$i" + grep -c "$key" ~/.ssh/authorized_keys + done +} ### GIT ### source /usr/share/git/completion/git-prompt.sh