I have a node def that refers to 2 classes like this; node default { class { [ eucalyptus, eucalyptus::nc ]: } } The 2nd "requires" the first class. Now, I''ve added parameters to the 2nd class and would like to set values here. What is the appropriate way to do that? I''m looking at the docs here and not seeing a clear way. I''ll just try some things to see what works in the meantime. http://docs.puppetlabs.com/guides/parameterized_classes.html David -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, On 11-09-06 11:11 AM, David Kavanagh wrote:> I have a node def that refers to 2 classes like this; > > node default { > class { > [ eucalyptus, eucalyptus::nc ]: > } > } > > > The 2nd "requires" the first class. > > Now, I''ve added parameters to the 2nd class and would like to set > values here. What is the appropriate way to do that?Did you try to split the two classes up? e.g.: class { ''eucalyptus'': ''eucalyptus::nc'': arg1 => value1, } -- Gabriel Filion -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 11-09-06 12:15 PM, David Kavanagh wrote:> Thanks, > It wasn''t clicking that it was an array notation.hep, no problem ;) I thought it was a little bit weird too, to be changing from "include classname" to "class { ''classname'': ...}". (e.g. because of the ''class'' reserved word, it now looks like you''re defining a new class inside your nodes) But I guess once you get the hang of it, it''s not that bad. Being able to use the same notation as other kinds of resources is a good thing. -- Gabriel Filion -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.