Skip to content

Commit

Permalink
Merge pull request #208 from tomkooij/dummy_vault
Browse files Browse the repository at this point in the history
Add vault_password_file script
  • Loading branch information
tomkooij authored Feb 13, 2018
2 parents 3ca54ab + cf635d6 commit a3257e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[defaults]
stdout_callback = debug
vault_password_file = ~/.hisparc_vault
vault_password_file = vault_password_file.sh
inventory = provisioning/ansible_inventory

[ssh_connection]
Expand Down
11 changes: 11 additions & 0 deletions vault_password_file.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
#
# Vault password is not required for dev VMs, so just echo
# a dummy value if the vault password is missing.
#
VAULT=~/.hisparc_vault
if [ -f "$VAULT" ]; then
cat $VAULT
else
echo "This is not the vault password!"
fi

0 comments on commit a3257e4

Please sign in to comment.