This gem can parse values, validations, documentation, types, groups and conditions of parameters from your puppet modules. Only thing you have to do is provide a path to manifest file you want to be parsed.
The library is used in Kafo, which can be used to get an idea of what's possible to build on top of this library.
Currently puppet classes and types (definitions) are supported.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install kafo_parsers
To parse file and see parsed information
require 'kafo_parsers/puppet_module_parser' hash = KafoParsers::PuppetModuleParser.parse('/puppet/module/manifests/init.pp') p hash
This project is licensed under the GPLv3+.