Hello I''m experimenting with the new resource chaining syntax. Here''s the code: class first { notice("first") } class second { notice("second") } class third { notice("third") } include third include second include first Class["first"] -> Class["second"] -> Class["third"] Shouldn''t the last line guarantee that the classes are executed in that specific order? Thanks in advance, Andre -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
The ordering only applies to the order in which resources are applied, not the order in which the code is processed. It will work like you expect if you switch out the calls to the notice function with notify resources. On Mon, Oct 24, 2011 at 3:48 AM, Andre Nathan <andrenth@gmail.com> wrote:> Hello > > I''m experimenting with the new resource chaining syntax. Here''s the > code: > > class first { notice("first") } > class second { notice("second") } > class third { notice("third") } > > include third > include second > include first > > Class["first"] -> Class["second"] -> Class["third"] > > Shouldn''t the last line guarantee that the classes are executed in > that specific order? > > Thanks in advance, > Andre > > -- > 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Oct 24, 11:54 am, Dan Bode <d...@puppetlabs.com> wrote:> The ordering only applies to the order in which resources are applied, not > the order in which the code is processed. > > It will work like you expect if you switch out the calls to the notice > function with notify resources.And that isn''t specific to the arrow syntax. The same applies to class and resource ordering directed by the "require" metaparameter and its friends. John -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.