Thanks, I'll give it a try! On Monday, September 24, 2012 5:19:30 PM UTC+3, Axel Bock wrote: > > I've done it with hashes as Trevor suggests. I do it to pass values to > templates, what's your use case? > > basically my class looks like this: > class myclass( $myhash => {}) { > ... > } > > and I use the class like this: > myclass { "myclass" : > myhash => { "mykey" => "myvalue" }, > } > > works like a charm. > > > HTH, > Axel. > > > Am Montag, 24. September 2012 12:40:24 UTC+2 schrieb Adrian Muraru: >> >> Is it possible to define a parametrized class but allowing variable >> number of arguments? >> thanks, >> adrian >> >
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/7gQBubONPOsJ. 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.