On Friday, November 15, 2013 10:08:54 AM UTC-6, Jon McKenzie wrote: > > Has anyone run into this issue before? > http://projects.puppetlabs.com/issues/5046#note-17 > > Is there something obvious that I'm missing? >
Yes. The 'require' function is a form of class declaration, functionally equivalent to 'include' + an automatic relationship. You therefore do have multiple declarations of class foo::baz: one in foo::bar and one in foo::bam. As long as the parameterized-style declaration is evaluated first, all is well, but otherwise you will get a duplicate declaration error. This general problem is one of my principal reasons for advising folks to not use parameterized-style class declarations, as I have done since parameterized classes were introduced. In Puppet 3 you can usefully create and use parameterized classes without using parameterized-style declarations by relying on automatic parameter binding through Hiera. John -- 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/5c8c9db1-7857-40ef-b82c-981371f80ff7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.