On Tue, Mar 20, 2012 at 9:55 AM, Nan Liu <n...@puppetlabs.com> wrote: > On Tue, Mar 20, 2012 at 9:33 AM, Douglas Garstang > <doug.garst...@gmail.com> wrote: >> On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang >> <doug.garst...@gmail.com> wrote: >>> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang >>> <doug.garst...@gmail.com> wrote: >>>> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza <g...@puppetlabs.com> wrote: >>>>> >>>>> >>>>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang >>>>> <doug.garst...@gmail.com> >>>>> wrote: >>>>>> >>>>>> I have a 2.7.6 server and a 2.6.4 client. I'm trying to use ext_lookup. >>>>>> >>>>>> site.pp: >>>>>> $extlookup_datadir = "/etc/puppet/manifests/extdata" >>>>>> $extlookup_precedence = ["%{fqdn}", "domain_%{domain}", "common"] >>>>> >>>>> >>>>> Try using Puppet variables: [$fqdn, "domain_${domain}", 'common'] >>>> >>>> Tried. Still getting the same error. I don't think it's even >>>> recognizing ext lookup(). Wasn't that functionality added in puppet >>>> 2.6? Btw, what I originally had was copied straight from the docs. >>>> >>>> Doug >>> >>> I get the same error if I replace ext lookup with xxx. It seems like >>> the function isn't there, yet the docs clearly state it was added in >>> puppet 2.6.1, and my server is 2.7.6 and my client is 2.6.4... > > If you replace extlookup with xxx it should error: > $ puppet apply -e " notice(xxx('key1','unknown'))" > Unknown function xxx at line 1 ... > > $ puppet apply -e "notice(extlookup('key1','unknown'))" > notice: Scope(Class[main]): unknown > notice: Finished catalog run in 0.04 seconds > > Feel free to try the one line example above, it doesn't seem like it's > compiling the manifest you are describing.
So, now it's working..... _after_ I upgraded the client to 2.7.6... Doug. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.