> > This smells like bug 8040. The ordering of the resources is not transferred > to the included classes. > > It is possible to work around this problem by declaring dummy resources in > the composite class that mark > the start and end of the class. The guys from puppetlabs use a custom > "anchor" type, but something > like a notify seems to work just as well. > > In the composite class: > > class composite { > > notify { "Start of class composite": message => "Start of class > composite" } > notify { "End of class composite": message => "End of class composite" > } > > ... > } > > Then in the subclasses, use: > > class composite::sub1 { > > ... > > Notify["Start of class composite"] -> Class["composite::sub1"] -> > Notify["End of class composite"] > } > > It all looks a bit verbose to me, but as mentioned in bug 8040, this will > be fixed in core. > > Kind regards, >
Ahh, If resources are being declared out of order, but the catalog still compiles (especially with using subclasses of resources), then this is probably what you're experiencing. Take a look at the ticket and the graphs therein. The anchor type used in our modules can be found in the puppetlabs-stdlib module, and viewed directly here --> https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/anchor.rbshould you want to implement it, but the notifies are also a nice workaround. > > kristof > >> -- > 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. > -- Gary Larizza Professional Services Engineer Puppet Labs Join us for PuppetConf <http://bit.ly/puppetconfsig>, September 22nd and 23rd in Portland, OR! -- 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.