Search code examples
modulepuppetlighttpd

puppet understanding parameters class


i am new in Puppet. I have a puppet basic infrastructure. I installed from

puppetforge "example42/lighttpd"

I am able to deploy this class without a problem to a puppet controlled node. My problem now,.how can i use the parameters in this class? i am not understood where i can activate the parameters.i would like to deploy lighttpd with customized index.html and a different log file path.i hope u can give me a hind :)

In the file params.pp

This class is not intended to be used directly.
It may be imported or inherited by other classes

but how can i imported this??


Solution

  • First off, to get straight started with puppet, you should take a look at the documentation for the module in question (ie. README, README.md, etc.). Next, understand the params pattern. The params class in a puppet module is usually a class that contains NO resources, and is meant to hold default data for a module (data not supplied from outside sources like hiera). most of the time you will see something like this:

    inherits lighttpd::param

    In the init, or another manifest file in a module. That is because it is inheriting the values from the params class.

    Hope this helped at least a little bit.