Skip to content

Instantly share code, notes, and snippets.

@kabakaev
Created May 22, 2015 15:59
Show Gist options
  • Select an option

  • Save kabakaev/c931fcb2b41b714ee214 to your computer and use it in GitHub Desktop.

Select an option

Save kabakaev/c931fcb2b41b714ee214 to your computer and use it in GitHub Desktop.
checks syntax of all yaml files found under ./hiera directory. It is useful to check Hiera syntax and it should be run from the root of a puppet project
for i in `find hiera -name "*.yaml"`
do
echo $i
ruby -e "require 'yaml'; YAML.parse(File.open('$i'))"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment