Purolie aims to provide a CLI way to get all the class parameters that will be used during a catalog compilation.
To make it clear given the following snippet
# foo/manifests/init.pp
class foo (
$param1 = 'param1',
$param2 = 'param2',
) {
include foo::bar
}
# foo/manifests/bar.pp
class foo::bar (
$param3 = 'param3',
$param4 = 'param4',
) {
}
purolie ~/.puppet/modules/foo/manifests/init.pp
will output
#
# foo
#
foo::param1: 'param1'
foo::param2: 'param2'
#
# foo::bar
#
foo::bar::param3: 'param3'
foo::bar::param4: 'param4'
Add this line to your application's Gemfile:
gem 'purolie'
And then execute:
$ bundle
Or install it yourself as:
$ gem install purolie
Purolie CLI offers the following options :
--sudo
: Should Purolie look for puppet manifests (ie./etc/puppet/modules/
) where user would look for them--path
: Path where Pruolie should look for puppet manifests--format
: Should the output bejson
oryaml
--mandatory
: Should Purolie only dispay mandatory parameters
- Fork it ( https://github.com/[my-github-username]/purolie/fork )
- 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 a new Pull Request