Move credentials.tar.gpg into misc directory

master
Felix Stupp 3 years ago
parent dadee8a49d
commit 8b6b7e57ad
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -2,6 +2,7 @@ vault:=group_vars/all/vault.yml
playbooks_dir:=playbooks
playbooks:=$(wildcard ${playbooks_dir}/*.yml)
credentials_dir:=credentials
credentials_file:=misc/credentials.tar.gpg
# Default Target (must be first target)
@ -28,11 +29,11 @@ vault:
# Credential Handling
.PHONY: store-credentials
store-credentials: credentials.tar.gpg
store-credentials: ${credentials_file}
credentials.tar.gpg: $(shell find "${credentials_dir}")
${credentials_file}: $(shell find "${credentials_dir}")
tar -cf - "${credentials_dir}" | gpg --encrypt --recipient 73D09948B2392D688A45DC8393E1BD26F6B02FB7 > "$@"
.PHONY: load-credentials
load-credentials:
< credentials.tar.gpg gpg --decrypt | tar -xf -
< "${credentials_file}" gpg --decrypt | tar -xf -

Loading…
Cancel
Save