On Thu, Jul 29, 2010 at 9:45 AM, Ryan Y. Coleman <dudei...@gmail.com> wrote: > > I would like to stage them such that pre occurs first, followed by deploy, > finished by configure. > > The documentation suggests you create new stages as resources. Does this mean > that in each class I create the stage resource like this example?
The stages are resources like any other, which means they can only be declared in the catalog once. Otherwise, you'll get duplicate declaration errors. I'd declare them in their own class included in the node classification. class runstages { stage { "pre": before => Stage["main"] } stage { "post": require => Stage["main"] } } > I got to this point and confused myself so I'm hoping one of you can clear me > up. Thanks! Here's the rest of my example: class one { notify { "class one, first stage": } } class two { notify { "class two, second stage": } } class three { notify { "class three, third stage": } } # JJM We need Stage[pre] and Stage[post] in the catalog include runstages # place Class[pre] in stage "pre" class { "one": stage => pre } # default Class[main] to stage "main" class { "two": } # place Class[post] in stage "post" class { "three": stage => post } -- Jeff McCune http://www.puppetlabs.com/ -- 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.
run_stages.pp
Description: Binary data