Created
May 22, 2015 15:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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