Alan Sparks
2010-Jul-22 00:44 UTC
[Puppet Users] 2.6, parameterized classes, external nodes
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-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.
Patrick Mohr
2010-Jul-22 01:51 UTC
Re: [Puppet Users] 2.6, parameterized classes, external nodes
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-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.
Alan Sparks
2010-Jul-22 02:06 UTC
Re: [Puppet Users] 2.6, parameterized classes, external nodes
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-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.