Thanks for illustrating the difference in the approaches which govern the placement of a class in the catalog graph. And indeed, it was only my unassuming intuition about chaining (and unawareness of #8040) that led me to think of simplifying some of the the code to use class chaining. Nevertheless will keep all the mentioned points & opinions in mind, they've been helpful to understand this behaviour better.
On Fri, Oct 12, 2012 at 3:56 AM, R.I.Pienaar <r...@devco.net> wrote: > > > ----- Original Message ----- >> From: "Mohit Chawla" <mohit.chawla.bin...@gmail.com> >> To: puppet-users@googlegroups.com >> Sent: Thursday, October 11, 2012 11:19:48 PM >> Subject: Re: [Puppet Users] Re: Wrapper classes, ordering & anchors >> >> Hi, it works with code like in your paste. But check this out : >> http://pastie.org/5037832, the original situation I found myself in, >> and you can see the "floating off" behaviour again. >> > > yes, our method does not constrain the left of the relationship > only the right - ie. classes before the wrapper class but at any > time before the wrapper class > > if you then insert another class before the wrapper you dont have > a guarantee where in the graph it gets inserted. > > In this specific case you could just swap the chain around putting > the classes after the wrapper > > Class["wrapper"] -> Class["three"] -> Class["two"] -> Class["one"] > > or whatever. > > The difference between the two is: > > for the anchor pattern as per Jeff: > > <before anchor> classes <after anchor> > > the simpler one: > > classes <wrapper as anchor> > > or > > <wrapper as anchor> classes > > its less strict and I prefer this because if you're overdoing > the require hints you're just really turning puppet into a bash > script > > -- > 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. > -- 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.