-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/05/10 10:15 AM, Douglas Garstang wrote: > I find myself using definitions more and more, and classes less even > when a class will do. > > One of the reasons is that you can pass arguments to definitions, > whereas with a class you have to set a global variable. Are there any > plans to allow classes in puppet to take a constructor, or something > like it, so that arguments can get passed to the class? >
This feature is in the next feature release, Rowlf. http://projects.puppetlabs.com/projects/puppet/wiki/Release_Notes Regards James Turnbull - -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBS9+jNCFa/lDkFHAyAQIg+AgAtHHN7AsaH7PS0Vad346oEO0bPoygs+er 2dDoCKciIbF/I0uBmVMXXDPNxxixIPAWo50w+I318vE38jjtCBNMifB1qQhXT7yA 4xobaEaxQDI/YzVjvnv3d21jfWYKsoigk/uSgt0BSWnQM2JvH9GzfKG5ViNXb7n3 ytWwSJiYAaOGG2BHg1p9uPWDNk4ml2DWMslnCbKH5Oj0EtVHWkPQpnfh4u0y+5SE tGrfWaJjqzNWOgV4XFOsNerOftR6RxDcoPDQNIC02Rws0ZHqTreoRa2egP4V+77l 6BuWIzD1bj7L0twjmWy6gdksVDRBtmjdwsPnfoAURZ+snh9i2xrTIQ== =Bvez -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.