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.


Reply via email to