Try using "before" or "require" in your classes like so:
class one { exec { "echoone": command => "/bin/echo $var1", before => Class["two"], } } class two { exec { "echotwo": command => "/bin/echo $var2", before => Class["three"], } } class three { exec { "echothree": command => "/bin/echo $var3", } } Best, Brandt -- J. Brandt Buckley Systems Integration Engineer CRBS bra...@ucsd.edu http://crbs.ucsd.edu M: +1 858 480 1010 F: +1 858 524 7497 Center for Research in Biological Systems University of California, San Diego 9500 Gilman Drive Basic Sciences Building #1000 La Jolla, Ca. 92093-0608 On Wed, Dec 8, 2010 at 4:29 AM, sergey arlashin <s.arlas...@gmail.com>wrote: > Hi! > I'm trying to make puppet execute classes in a certain order for a > particular node. > So this is my test config: > > class one { > exec { "echoone": > command => "/bin/echo $var1", > } > } > > class two { > exec { "echotwo": > command => "/bin/echo $var2", > } > } > > class three { > exec { "echothree": > command => "/bin/echo $var3", > } > } > > node "client-tpl-puppet.localnet" { > $var1 = "1" > $var2 = "2" > $var3 = "3" > include one, two, three > } > > But when I launch puppet client on the node "client-tpl- > puppet.localnet" I see that all the classes execute in an absolutely > random order. The documentation says I should use stages, but I cannot > figure out how to use them in this particular case. > Could you show an example? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@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-us...@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.