That may be the problem - I call it by: ipaddr = `facter ipaddress`.chomp
On Jan 8, 4:22 pm, James Turnbull <ja...@lovedthanlost.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > > > Jeff Leggett wrote: > > So I wrote a new fact to determine clients proxy. Work's great when > > I call it via facter as a single: > > > [jlegg...@lxp6d11m8v190 jleggett]$ facter etproxy > > 10.X.Y.Z:8080 > > > But when I call facter alone (for full output of all facts) I see this > > at beginning: > > > [jlegg...@lxp6d11m8v190 jleggett]$ facter > > /opt/etrade/p6/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72: > > command not found: facter ipaddress > > 10.X.Y.Z:8080 > > > (I call fatcer ipaddress in my new fact - is that the problem?) > > > Nothing here indicates I need to do something else: > >http://reductivelabs.com/trac/puppet/wiki/AddingFacts? > > > What'd I do wrong? > > Can you pastie your code? > > Do you call facter ipaddress as a binary or use: > > Facter.value(:ipaddress) > > Regards > > James Turnbull > > - -- > Author of: > * Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > * Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > * Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iD8DBQFJZm6e9hTGvAxC30ARAtT8AJwO6hah0YC0FWv3UbD7b+kos4Ku0gCeNsF7 > /2fHE+dAc5PW+DWU6O+jhW4= > =hQBC > -----END PGP SIGNATURE------ Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---