On Jan 30, 2011 8:19 AM, "Ben Lavender" <[email protected]> wrote:
>
> So I am using a mix of old puppet and the Ruby DSL on a new project
> (loving it, new as it is!). But I've run into some behavior that
> surprised me.
>
> In my default node, (.pp), I have, among others, these lines:
>
> node "default" {
> class { 'amqp': stage => system }
> include roles
> }
[…]
> What surprised me is that my clever plan to do some fun logic on
> system roles is thwarted by the stage assignment. Regardless of
> whether or not I include the amqp class anywhere else, the stage
> assignment includes the class in the configuration. I did not expect
> this--I imagined that stage assignment was metadata, not assigning the
> class as a requirement for the stage. Is that intended behavior?
Yes: the class statement in the equivalent of "include", as well as
assigning that metadata.
Regards,
Daniel
--
Puppet Labs Developer –http://puppetlabs.com
Daniel Pittman <[email protected]>
Contact me via gtalk, email, or phone: +1 (877) 575-9775
Sent from a mobile device. Please forgive me if this is briefer than usual.
--
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.