How do you (if you can) represent a parameterized class reference in an external node YAML description (exec terminus)? -Alan -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, Jul 30, 2010 at 5:01 PM, Alan Sparks <asparks@doublesparks.net> wrote:> How do you (if you can) represent a parameterized class reference in an > external node YAML description (exec terminus)? > -AlanYou can''t at the moment, unfortunately. If you have any thoughts about what this API should look like, please describe some of your use cases or how you''d like this interface to operate. It''s definitely something that I''m thinking about as well, I just don''t think anyone has hammered out a design yet. -- 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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Frederik Wagner
2010-Aug-27 21:12 UTC
Re: [Puppet Users] parameterized class, external nodes?
Hi, On Sat, Jul 31, 2010 at 2:43 AM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Fri, Jul 30, 2010 at 5:01 PM, Alan Sparks <asparks@doublesparks.net> wrote: >> How do you (if you can) represent a parameterized class reference in an >> external node YAML description (exec terminus)? >> -Alan > > You can''t at the moment, unfortunately. If you have any thoughts > about what this API should look like, please describe some of your use > cases or how you''d like this interface to operate. > > It''s definitely something that I''m thinking about as well, I just > don''t think anyone has hammered out a design yet.Is there some progress on this point? I would also need this feature, in particular to use the new staging feature. I would like to include the classes through an external node yaml file. I would also like give the desired stage where the class should be applied. Alternatively: It seems not to be possible to set the stage metaparameter with a default value in a class definition?! something like this wont run in Stage "pre": stage{ pre: before => Stage[main] } class someclass ($stage=pre ) { ... } class { someclass: } Thanks and Bye, Frederik -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, Aug 27, 2010 at 2:12 PM, Frederik Wagner <fnerdwq@googlemail.com> wrote:> > Alternatively: It seems not to be possible to set the stage > metaparameter with a default value in a class definition?! > > something like this wont run in Stage "pre": > > stage{ pre: before => Stage[main] } > class someclass ($stage=pre ) { ... } > class { someclass: }Please file this as a bug. http://projects.puppetlabs.com/issues Thanks, -Jeff McCune -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Frederik Wagner
2010-Aug-30 07:33 UTC
Re: [Puppet Users] parameterized class, external nodes?
On Mon, Aug 30, 2010 at 7:07 AM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Fri, Aug 27, 2010 at 2:12 PM, Frederik Wagner <fnerdwq@googlemail.com> wrote: >> >> Alternatively: It seems not to be possible to set the stage >> metaparameter with a default value in a class definition?! >> >> something like this wont run in Stage "pre": >> >> stage{ pre: before => Stage[main] } >> class someclass ($stage=pre ) { ... } >> class { someclass: } > > Please file this as a bug. > > http://projects.puppetlabs.com/issuesjust done> Thanks, > -Jeff McCune > > -- > 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.