Re: [Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Douglas Garstang
On Sun, Aug 22, 2010 at 12:20 AM, Douglas Garstang wrote: > On Sun, Aug 22, 2010 at 12:02 AM, Joe McDonagh > wrote: >> On 08/22/2010 02:42 AM, Douglas Garstang wrote: >> >>> >>> This seems a bit weird to me. The second parameter isn't optional (I >>> think the 2nd and 3rd parameters should be swi

Re: [Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Douglas Garstang
On Sun, Aug 22, 2010 at 12:02 AM, Joe McDonagh wrote: > On 08/22/2010 02:42 AM, Douglas Garstang wrote: > >> >> This seems a bit weird to me. The second parameter isn't optional (I >> think the 2nd and 3rd parameters should be switched), which means that >> you MUST have a default value in there,

Re: [Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Joe McDonagh
On 08/22/2010 02:42 AM, Douglas Garstang wrote: > > This seems a bit weird to me. The second parameter isn't optional (I > think the 2nd and 3rd parameters should be switched), which means that > you MUST have a default value in there, which means, you might as well > use the same value as in the

[Puppet Users] extlookup in 2.6.1 defaults

2010-08-21 Thread Douglas Garstang
Hmmm So I was just trying the extlookup function that comes with puppet 2.6.1. It now lets you do this: $version = extlookup("rsyslog_version", "present", "packages") which, according to the documentation: # This will look for a version configured in packages.csv and then in the rest as con