summaryrefslogtreecommitdiffstats
path: root/pass-client
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2019-02-19 05:45:25 +0100
committerTharre <tharre3@gmail.com>2019-02-19 05:45:30 +0100
commitb6d02e11cc8ac63ce717f1a9be092f1f541745b6 (patch)
treee999059e1eefd7d05c7040a8581187cad8be5dd6 /pass-client
parentcbd109adc0822485431fa64e4d552facf05ad02b (diff)
downloadinfrastructure-b6d02e11cc8ac63ce717f1a9be092f1f541745b6.tar.gz
infrastructure-b6d02e11cc8ac63ce717f1a9be092f1f541745b6.tar.xz
infrastructure-b6d02e11cc8ac63ce717f1a9be092f1f541745b6.zip
Add WireGuard role
Diffstat (limited to 'pass-client')
-rwxr-xr-xpass-client13
1 files changed, 13 insertions, 0 deletions
diff --git a/pass-client b/pass-client
new file mode 100755
index 0000000..9461875
--- /dev/null
+++ b/pass-client
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+# NOTE: this file must end with "-client", as otherwise ansible won't pass the
+# --vault-id argument to us.
+
+from subprocess import call
+import argparse
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--vault-id', dest='vault_id', required=True)
+args = parser.parse_args()
+
+call(["pass", args.vault_id])