aboutsummaryrefslogtreecommitdiffstats
path: root/vault.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vault.sh')
-rwxr-xr-xvault.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/vault.sh b/vault.sh
new file mode 100755
index 0000000..bac110e
--- /dev/null
+++ b/vault.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -ex
+
+password_bin=$(command -v pass || command -v gopass)
+password_name="${2:-infrastructure/ansible/root}"
+
+"${password_bin}" show "${password_name}" | head -n 1
remember that computers suck.