Parse puppet manifests and generate YAML output of defined nodes and classes. Provide informations like defined resources, resource overrides, parameters, includes and variables.
Note: This parser started as a fork of puppet-parse project. After changes to multiple files and need to generate more output information I ended up with completely rewritten code around existing puppet parser.
-
Parses:
- Nodes definitions and classes.
- Resource definition and overrides with all parameters.
- Class includes.
- Defined variables.
-
Parsed information is writen to stdout in YAML format.
- Parse defines.
- Parse class and define parameters.
- RDOC documentation parsing.
Clone github repository:
$ git clone https://github.com/pradels/puppet-parser.git
Run puppet-parser
command with the path where *.pp files are located. Parser walks
recursively through all subdirectories if specified path is a directory.
$ puppet-parser/bin/puppet-parser <PATH> [PATH]...
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request