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