How to check yaml syntax

sudo yum install gem

sudo gem install yaml-lint

yaml-lint /etc/puppetlabs/code/environments/production/hieradata/common.yaml
Checking the content of ["/etc/puppetlabs/code/environments/production/hieradata/common.yaml"]
File : /etc/puppetlabs/code/environments/production/hieradata/common.yaml, Syntax OK
Done.


Popular posts from this blog

cognos content store database tables

How to fix: User, group, or role '*' already exists in the current database. (Microsoft SQL Server, Error: 15023)