----- Original Message -----
> From: "Douglas Garstang" <doug.garst...@gmail.com>
> To: puppet-users@googlegroups.com
> Sent: Friday, October 8, 2010 3:35:52 PM
> Subject: Re: [Puppet Users] Run Stages
>
> Thanks Ryan. I must be missing something pretty fundamental, because
> when I do:
> 
> 
> class { "yum::client": stage => repo }

Are you setting this within your node definition?

Like:

node "foo.example.com" {
   include class-that-includes-stages
   class { "yum::client": stage => repo }
}


> 
> 
> puppet complains:
> Duplicate definition: Class[Yum::Client] is already defined; cannot
> redefine
> 
> 
> which, really isn't a surprise, because yum::client _IS_ already
> defined!
> 
> 
> Doug.
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message -----
> > From: "Douglas Garstang" < doug.garst...@gmail.com >
> > To: "Puppet Users" < puppet-users@googlegroups.com >
> > Sent: Friday, October 8, 2010 3:13:45 PM
> > Subject: [Puppet Users] Run Stages
> > Has anyone got an example of run stages they could post?
> >
> >
> > As per the release notes at
> > http://projects.puppetlabs.com/projects/1/wiki/Release_Notes , the
> > description is _really_ unclear, and putting
> >
> >
> > class yum { ... }
> > class redhat {
> > ...
> > class { yum: stage => pre
> > }
> >
> >
> > in your code causes puppet to complain:
> >
> >
> > Could not retrieve catalog from remote server: Error 400 on SERVER:
> > Puppet::Parser::AST::Resource failed with error ArgumentError:
> > Invalid
> > resource type class at ...
> >
> >
> > Doug.
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Puppet Users" group.
> > To post to this group, send email to puppet-users@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 .
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To post to this group, send email to puppet-users@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 .
> 
> 
> 
> 
> --
> Regards,
> 
> Douglas Garstang
> http://www.linkedin.com/in/garstang
> Email: doug.garst...@gmail.com
> Cell: +1-805-340-5627
> 
> 
> 
> --
> 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.

-- 
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.

Reply via email to