Stages? Would you mind elaborating? Sent from my iPhone
On Nov 25, 2012, at 11:37 AM, Ugo Bellavance <[email protected]> wrote: > I'm not a puppet expert, but your situation would probably fit more with an > usage of stages. > > It would allow you to define stages and order or those. > > On Sunday, November 25, 2012 11:56:40 AM UTC-5, Smashed wrote: >> >> Trying to figure out if these would behave the same or not? >> >> Example 1: >> ----------------- >> >> class Foo { >> require Bar >> someresource { 'baz': >> …. # This depends on A,B and C being already completed >> } >> } >> >> class Bar { >> include A >> include B >> include C >> } >> >> >> Example 2: >> ---------------- >> >> class Foo { >> include Bar >> someresource { 'baz': >> …. >> require => Class['Bar'] >> } >> } >> >> class Bar { >> include A >> include B >> include C >> } >> >> >> So will these behave the same? When I require Bar in the first example are >> the A,B and C resources guaranteed to be executed before the resource in >> Foo? Same question goes for example 2 >> >> >> Thanks for the clarification! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/oP6xEACJKIwJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
