Skip to content

Instantly share code, notes, and snippets.

@kabakaev
kabakaev / puppet-hiera-yaml-check-syntax
Created May 22, 2015 15:59
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