Skip to content

Instantly share code, notes, and snippets.

View jpendry's full-sized avatar

Jimmy jpendry

  • Emergent Properties
  • Franklin, IN
  • 10:50 (UTC -04:00)
View GitHub Profile
#!/bin/sh
#
# Verifies that all files in provisioning/group_vars are encrypted with ansible-vault.
# If not, commit will fail with an error message
#
# File should be .git/hooks/pre-commit and executable
FILES_PATTERN='provisioning/group_vars/.*$'
REQUIRED='ANSIBLE_VAULT'
EXIT_STATUS=0