I since found the solution, it was possible to pass the same variable to a nested class, I just had to set $var = undef in the main class definition which is base_modules in my case. I can see this list isn't all that useful either..
On Wednesday, March 9, 2016 at 11:00:03 PM UTC-8, solarflow 99 wrote: > > I'm not sure if this is the right terminology, but what I have is > basically a class called "base_modules" that includes several modules. > This is so I don't have to specify each and every module for each node, I > can just include base_modules. The problem now is that I need to pass > $urlcheck to one of them, and I don't see how I can do that without > removing it from base_modules and calling the class with a parameter for > each node. One thing I liked when node inheritance was possible was the > ability to inherit $urlcheck with a default value, and for the ones that > had to be different, just specify $urlcheck = "something different" in the > node definition. I understand hiera can do this but it means having to > create a yaml file for each trusted.certname that I want to override what > would be the default setting in common.yaml. > > Is there any better way to do that? > > > -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2104c8ef-2eb1-49cd-adef-30c3326f05c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.