Bootstrap new approach

This commit is contained in:
Luke Murphy
2020-03-22 15:40:59 +01:00
parent a51613fe77
commit 1c59412d34
13 changed files with 181 additions and 0 deletions

15
sbin/encrypt.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -eu -o pipefail
# Usage
# ./encrypt.sh mysecretname mysecretvalue
declare name="$1"
declare secret="$2"
ansible-vault \
encrypt_string \
--vault-password-file ansible/.vault.sh \
--name "$name" \
"$secret"