Guys, I have a couple of custom facts I use (fairly basic) being distributed via the "custom" module and pluginsync''ing. They work, which is obviously a good thing, because the classes/modules depending on them work as expected, but this is only because they were so simple to make that I managed to get them right the first time of around. If I run facter manually, the facts (now in /var/lib/puppet/lib/facts) are not being processed and facter --help has not shown me anything in terms of how I add/change the facts search path. -- /peter
On Feb 13, 2008, at 10:29 AM, Peter Hoeg wrote:> Guys, > > I have a couple of custom facts I use (fairly basic) being distributed > via the "custom" module and pluginsync''ing. > > They work, which is obviously a good thing, because the > classes/modules depending on them work as expected, but this is only > because they were so simple to make that I managed to get them right > the first time of around. > > If I run facter manually, the facts (now in /var/lib/puppet/lib/facts) > are not being processed and facter --help has not shown me anything in > terms of how I add/change the facts search path.It''s long past time for the docs to be updated somewhere indicating this, but you need to set FACTERLIB to the $factdir if using factsync, or you need to set RUBYLIB to $libdir if using pluginsync. Can someone please update the FAQ or something, and maybe provide a patch to facter''s help? -- Don''t hit at all if it is honorably possible to avoid hitting; but never hit soft! -- Theodore Roosevelt --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
I''ve logged it as a bug against facter and assigned myself to fix it (hope that''s ok). Will test it out tonight. On 13/02/2008, Luke Kanies <luke@madstop.com> wrote:> On Feb 13, 2008, at 10:29 AM, Peter Hoeg wrote: > > > Guys, > > > > I have a couple of custom facts I use (fairly basic) being distributed > > via the "custom" module and pluginsync''ing. > > > > They work, which is obviously a good thing, because the > > classes/modules depending on them work as expected, but this is only > > because they were so simple to make that I managed to get them right > > the first time of around. > > > > If I run facter manually, the facts (now in /var/lib/puppet/lib/facts) > > are not being processed and facter --help has not shown me anything in > > terms of how I add/change the facts search path. > > It''s long past time for the docs to be updated somewhere indicating > this, but you need to set FACTERLIB to the $factdir if using factsync, > or you need to set RUBYLIB to $libdir if using pluginsync. > > Can someone please update the FAQ or something, and maybe provide a > patch to facter''s help? > > -- > Don''t hit at all if it is honorably possible to avoid hitting; but > never hit soft! -- Theodore Roosevelt > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- /peter
[13 Feb, @17:46 CET, Luke Kanies wrote in "Re: [Puppet-users] How to test ..."]> It''s long past time for the docs to be updated somewhere indicating > this, but you need to set FACTERLIB to the $factdir if using factsync, > or you need to set RUBYLIB to $libdir if using pluginsync. > > Can someone please update the FAQ or something, and maybe provide a > patch to facter''s help?I''ve learned this from: http://reductivelabs.com/trac/puppet/wiki/AddingFacts so its already there. grtz Miek _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Hoeg wrote: | I''ve logged it as a bug against facter and assigned myself to fix it | (hope that''s ok). Will test it out tonight. | Peter Also worth updating the FAQ and perhaps http://reductivelabs.com/trac/puppet/wiki/AddingFacts also. Cheers James Turnbull - -- James Turnbull (james@lovedthanlost.net) - -- 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 iD8DBQFHs1v+9hTGvAxC30ARArD2AJ0U38Q5vvNEYQWd6alFkXNiTPw85wCfSkFQ ZBmpMpPNn+FJloWjRFj4MbY=7oIg -----END PGP SIGNATURE-----
It''s amazing what one can learn from RTFD...... I''ll just crawl back into my hole. /peter On 14/02/2008, James Turnbull <james@lovedthanlost.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Peter Hoeg wrote: > | I''ve logged it as a bug against facter and assigned myself to fix it > | (hope that''s ok). Will test it out tonight. > | > > Peter > > Also worth updating the FAQ and perhaps > http://reductivelabs.com/trac/puppet/wiki/AddingFacts also. > > Cheers > > James Turnbull > > - -- > James Turnbull (james@lovedthanlost.net) > - -- > 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 > > iD8DBQFHs1v+9hTGvAxC30ARArD2AJ0U38Q5vvNEYQWd6alFkXNiTPw85wCfSkFQ > ZBmpMpPNn+FJloWjRFj4MbY> =7oIg > -----END PGP SIGNATURE----- > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- /peter