On Mon, Dec 13, 2010 at 4:42 PM, Luke Kanies <[email protected]> wrote:

> If your goal is to evaluate a parameterized class, it's, um, apparently
> pretty annoyingly complicated.  At least, if the parameterized class has a
> parent class it is.  Look at the 'ensure_in_catalog' method in
> lib/puppet/resource/type.rb in the current master branch for an example of
> how it's done when there aren't parameters.
>
> Paul - would it be possible to extend that method to accept parameters, and
> then promote it as an API method for use in things like functions?
>

Just to supply some missing context here: I believe Dan is working on a
patch for ticket #5045 (External node classifiers should be able to specify
parameters for parameterized classes).  From a discussion with Nigel
yesterday, it sounds like we want to get this ticket into 2.6.x.

So, to answer your question, Luke, yes, it would certainly be possible to
extend ensure_in_catalog to take parameters, and I think that's the right
way to address ticket #5045.  I'm not sure it's necessary to promote it to
an API, though.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to