Skip to content

pradels/puppet-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppet Parser

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.

Features

  • 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.

Future Work

  • Parse defines.
  • Parse class and define parameters.
  • RDOC documentation parsing.

Usage

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]...

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Parse puppet manifests and generate YAML output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages