> > no. you can use the variables provided by the external tool in the
> > classes you include. you even then could implement kind of default
> > values for these variables in the class.
>
In think your example gives a false idea of a solution because you
have only one call to the definition
If you don't know in advance how many call you'll have to use,
you must say N times some thing like => testdefine{"name_${test_i}":
param => $testparam_i }
Moreover if you have several arguments to the definition you end up
with a bunch of parameters to deal with.
So each time you want to change the number of calls, you have to
modify the class, which mean writing some .pp file
Thus the benefits of using external node is lost by the need to modify
this class each time.
>> this is completely besides the discussion if it should be able to call
>> defines from an external tool.
well, it's an extension of the discussion. If i can't do something
with the language it is a good question to know if we can change or
extend it, no ?
Do you want me to start a new topic ?
nicolas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---