Add initial templates for docker-compose services (gitea, nextcloud, traefik)

This commit is contained in:
2022-07-14 23:13:34 -07:00
commit 1cd9af500c
38 changed files with 1037 additions and 0 deletions

20
contrib/rbw-client.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# https://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash
while [[ $# -gt 0 ]]; do
case $1 in
--vault-id)
vault_id="$2"
shift # past argument
shift # past value
;;
-*)
echo "Unknown option $1"
exit 1
;;
esac
done
# rbw adds a newline which has to be trimmed
/usr/bin/env rbw get --folder Keyring "$vault_id" ansible_vault | tr -d '\n'