John, I'm new to puppet and your mails confuse me a little bit... if parameterized classes are not recommended and you suggest when dealing with someone else parameterized class to set it through hiera (Puppet 3). Then I don't understand how to proceed with puppet 2 modules...
Should I hack every module I need to set the defaults inside the module? If this is the way, what if I need to reuse the module with different defaults? I thought a good module was a module I don't need to touch and I can set my defaults from my call, with this approach as soon I start using a module I'll likely not keep up to date with it, as it will have to deal with all the hacked code during upgrades. And if making a module, without using parameters, how I can reuse the module with different defaults ? Should I create a different params.pp for each scenario I need and then include it inheriting each one of the defaults, this would be a mess to deal with large arquitectures with many different types of nodes. I'm sorry to ask but since we started using puppet (a few months ago) we started doing everything with parameters as puppet docs said on http://docs.puppetlabs.com/guides/parameterized_classes.html and since then we had no issue (yet) with it. And now you say that parameters are a sickness and should not be used. Then how on Puppet 2? And why it's still puppet docs still recommending it? Thanks in advance for your time! Guzmán On Mon, Oct 15, 2012 at 6:56 PM, jcbollinger <john.bollin...@stjude.org>wrote: > > > On Monday, October 15, 2012 9:43:48 AM UTC-5, Matt Zagrabelny wrote: >> >> Can you suggest an alternative to parameterized classes? >> >> > Funny that you ask. I just did exactly that a few doors down: > https://groups.google.com/forum/#!msg/puppet-users/dICUPHn3azY/b0wJaiSbs8kJ. > I'm afraid I waxed long-winded, but there is an example in there. > Basically, thoug > h, it's to use hiera, and to do so explicitly instead of via 3.0's hiera / > class parameter integration. > > > John > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/ZNXpUwtq3UgJ. > > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- GuruHub - Guzmán Brasó http://www.guruhub.com.uy - +59898674020 Rivera 3565 - CP11400 - Montevideo, Uruguay -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.