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"] /etc/puppet/manifests/extdata/common.csv: key1,var1: manifest has: $var1 = extlookup(“key1”, "Unknown”) I''m getting error: err: Could not match “key1”, at /etc/puppet/modules/function/manifests/common.pp:3 on node abc.aws.ixxx.com What''s up? 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang <doug.garstang@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'']> > /etc/puppet/manifests/extdata/common.csv: > key1,var1: > > manifest has: > $var1 = extlookup(“key1”, "Unknown”) > > I''m getting error: > err: Could not match “key1”, at > /etc/puppet/modules/function/manifests/common.pp:3 on node > abc.aws.ixxx.com > > What''s up? > > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Gary Larizza Professional Services Engineer Puppet Labs -- 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.
On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza <gary@puppetlabs.com> wrote:> > > On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang <doug.garstang@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 -- 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.
On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang <doug.garstang@gmail.com> wrote:> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza <gary@puppetlabs.com> wrote: >> >> >> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang <doug.garstang@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. > > DougI 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... 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang <doug.garstang@gmail.com> wrote:> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang > <doug.garstang@gmail.com> wrote: >> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza <gary@puppetlabs.com> wrote: >>> >>> >>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang <doug.garstang@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... > > DougJeez... it shouldn''t be this damn hard... 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Mar 20, 2012 at 9:33 AM, Douglas Garstang <doug.garstang@gmail.com> wrote:> On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang > <doug.garstang@gmail.com> wrote: >> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang >> <doug.garstang@gmail.com> wrote: >>> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza <gary@puppetlabs.com> wrote: >>>> >>>> >>>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang <doug.garstang@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. Nan -- 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.
On Tue, Mar 20, 2012 at 9:55 AM, Nan Liu <nan@puppetlabs.com> wrote:> On Tue, Mar 20, 2012 at 9:33 AM, Douglas Garstang > <doug.garstang@gmail.com> wrote: >> On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang >> <doug.garstang@gmail.com> wrote: >>> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang >>> <doug.garstang@gmail.com> wrote: >>>> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza <gary@puppetlabs.com> wrote: >>>>> >>>>> >>>>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang <doug.garstang@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.