Skip to content

Instantly share code, notes, and snippets.

View ralovely's full-sized avatar

Raphael Campardou ralovely

View GitHub Profile
@ralovely
ralovely / pre-commit.example
Created March 5, 2014 14:03
Git pre-commit hook for Ansible Vault
#!/bin/sh
#
# Pre-commit hook that verifies if all files containing 'vault' in the name
# are encrypted.
# If not, commit will fail with an error message
#
# File should be .git/hooks/pre-commit and executable
FILES_PATTERN='.*vault.*\.yml$'
REQUIRED='ANSIBLE_VAULT'

Keybase proof

I hereby claim:

  • I am ralovely on github.
  • I am ralovely (https://keybase.io/ralovely) on keybase.
  • I have a public key whose fingerprint is 8DEF CD41 C526 B9F2 A866 C342 BF1D 153A D883 093B

To claim this, I am signing this object: