On Tuesday, October 8, 2013 1:59:58 AM UTC-5, AMARASINGHAM, Chandra wrote:
>
>  Hi,
>
>  
>
> I would like to use a defined type and enter parameters from the puppet 
> console.  So far I can only use defined types in a class because the puppet 
> console only seems to allow assigning configuration via classes.  This 
> means that I can use the same class with different parameters for the same 
> node...which is why I wanted to use a defined type.  Is there any way 
> around this?
>

External node classifiers, such as the one integrated into the Puppet 
console, cannot assign individual resources to nodes; they can only set 
global variables and assign classes.  Defined type instances are resources.

As Paul described, you can wrap multiple defined type instance declarations 
into a class, and assign that (via the console or otherwise).  There are 
also approaches involving external data accessed via the hiera() function 
or automated class parameter binding.  These would still involve preparing 
an appropriate class definition.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to