Strangely enough, I lately started to move my params out of params
classes and into the init class. I really prefer to have example::param1
in my hiera instead of the example::params::param1. Will be glad to
hear what the params class actually buys you as a pattern.

For me the params class makes more sense when you don't have hiera or
ENC in place.  I remember using it because it was used as a standard and
I found it as a "nice" pattern on the internet.

Will be glad to hear more on this one too so +1

-- 
Nikola

On Thu, Apr 04, 2013 at 12:38:47PM +0200, Thomas Bendler wrote:
> Hi @all,
> 
> I've started rewriting some of my modules to achieve separation of logic
> and data. So I did some standard layout with init.pp and params.pp for
> default values and parametrized classes for individual configuration like
> this:
> 
> class example (
>   $parameter1 = hiera('example::parameter1', $example::params::parameter1),
>   $parameter2 = hiera('example::parameter2', $example::params::parameter2))
> inherits example::params {
> # Some coding
> }
> 
> I
> s this approach generic enough or will a different coding style be a
> better approach with more use cases in mind? What do you think, any
> suggestions?
> 
> 
> Regards Thomas
> 
> -- 
> Linux ... enjoy the ride!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to