another 2.6 question... stages

0 views
Skip to first unread message

Peter Berghold

unread,
Jan 22, 2011, 12:26:40 PM1/22/11
to puppet...@googlegroups.com
Also in 2.6 I have started using "stages" in my setups   In my site.pp file I have something that looks like this:

stage { preamble: before => Stage[main] }
stage { postamble: require => Stage[main] }

class {
         "foo" : stage => preamble ;
         "bar": stage => postable;
}

Is it safe to assume that "foo" will always be managed during the preamble stage regardless of other definitions?


--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC

Daniel Pittman

unread,
Jan 23, 2011, 12:49:19 PM1/23/11
to puppet...@googlegroups.com
On Sat, Jan 22, 2011 at 09:26, Peter Berghold <salty....@gmail.com> wrote:
>
> Also in 2.6 I have started using "stages" in my setups   In my site.pp file
> I have something that looks like this:
>
> stage { preamble: before => Stage[main] }
> stage { postamble: require => Stage[main] }
>
> class {
>          "foo" : stage => preamble ;
>          "bar": stage => postable;
> }
>
> Is it safe to assume that "foo" will always be managed during the preamble
> stage regardless of other definitions?

Puppet will treat a dependency that would violate that expectation as
a hard error, and emit the usual "cycle found" failure; that applies
to both your requirements and any automatic requirements, which can be
tricky to debug some of the time.

So, you can safely assume that puppet won't randomly pull "foo" out of
the preamble.

Regards,
Daniel
=--
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <dan...@puppetlabs.com>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons

Reply all
Reply to author
Forward
0 new messages