[Puppet Users] 2.6, parameterized classes, external nodes

2010-07-21 Thread Alan Sparks
The release notes do not mention whether the external node classifier
system now supports parameterized classes, and if so, what the syntax
expected would be to use it.  Is this supported?

Also, the release notes indicate with respect to parameterized classes:
with the significant difference that definitions have multiple
instances whilst classes remain singletons.

Many of us have the problem of needing to simulate the instantiation of
definitions via external nodes (e.g., the multiple Apache vhosts
situation, or multiple service instantiations with unique
configurations).  Since these are singletons, I'm guessing parameterized
classes won't help in solving this problem...  Does 2.6 provide any new
support toward solving it?

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



Re: [Puppet Users] 2.6, parameterized classes, external nodes

2010-07-21 Thread Patrick Mohr

On Jul 21, 2010, at 5:44 PM, Alan Sparks wrote:

 Many of us have the problem of needing to simulate the instantiation of
 definitions via external nodes (e.g., the multiple Apache vhosts
 situation, or multiple service instantiations with unique
 configurations).  Since these are singletons, I'm guessing parameterized
 classes won't help in solving this problem...  Does 2.6 provide any new
 support toward solving it?

Now I'm confused.  Isn't a parameterized class the same as a define except for 
the class being a singleton?

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



Re: [Puppet Users] 2.6, parameterized classes, external nodes

2010-07-21 Thread Alan Sparks
Patrick Mohr wrote:
 On Jul 21, 2010, at 5:44 PM, Alan Sparks wrote:

   
 Many of us have the problem of needing to simulate the instantiation of
 definitions via external nodes (e.g., the multiple Apache vhosts
 situation, or multiple service instantiations with unique
 configurations).  Since these are singletons, I'm guessing parameterized
 classes won't help in solving this problem...  Does 2.6 provide any new
 support toward solving it?
 

 Now I'm confused.  Isn't a parameterized class the same as a define except 
 for the class being a singleton?

   
So what does that mean exactly?  Can you do:
class { myclass: name = foo, myval = one }
class { myclass: name = baz, myval = two }

And instantiate a set of unique resources?
-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-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.