Hi,

On 01/31/2012 04:39 PM, Olivier wrote:
> My problem is that I need to call the class multiple times in the
> site.pp file but with different parameters.

this is not possible.

It doesn't really make sense either. Classes in puppet are unlike
classes in other languages like C# or Java that you may be familiar
with. There are no instances to classes. Each class is a singleton
entity. A host declares a given class or it doesn't. Once or never.

As for parameterized classes, the parameter values must have one
definitive value for each given node.

I advise your share the "real world" problem you need solved, so that
the community can advise you on the best way to solve your problem by hand.
You probably don't need class parameterization at all, but from your
description so far, I cannot guess what approach would fit you best.

Cheers,
Felix

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

Reply via email to