facter doesn't load from /ect/facter/facts.d

457 views
Skip to first unread message

Larry Fast

unread,
Apr 13, 2013, 10:18:35 AM4/13/13
to puppet...@googlegroups.com
I'm trying to load custom facts via /etc/facter/facts.d/*  according to instructions on 

I must have missed a setting somewhere because I get nothing.  The first clue may be that /etc/facter didn't exist. I had to create it manually.

Is there a setting or search path I need to create?

Details:

puppet 3.0.1
facter 1.6.14-1.el6
centos 6

I created 4 files in /etc/facter/facts.d:   y1.yaml, t1.txt, j1.json and r1.rb
Each file has it's appropriate format yaml, text, json, ruby.
facter --debug     says nothing about these files
running puppet agent the facts from these files do not appear

Peter Meier

unread,
Apr 13, 2013, 11:19:29 AM4/13/13
to puppet...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Is there a setting or search path I need to create?
>
> Details:
>
> puppet 3.0.1 facter 1.6.14-1.el6


I don't think this is supported in facter 1.6. One used to have the
stdlib module for it until facter 1.7 should be released, which will
provide that.

But maybe I'm wrong.

~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFpd30ACgkQbwltcAfKi3921wCgqqmxl7eAybhAtl4Z7AKs0k5c
q2cAn3ynRWqJLoqxYFFY8YoSKPPjm8uG
=RMny
-----END PGP SIGNATURE-----

Keith Burdis

unread,
Apr 13, 2013, 11:20:25 AM4/13/13
to puppet-users

From that page: "External facts are only available in Facter 1.7 and later."

I expect you need to either upgrade or install the stdlib module.

  - Keith

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Larry Fast

unread,
Apr 13, 2013, 5:27:11 PM4/13/13
to puppet...@googlegroups.com
> From that page: "External facts are only available in Facter 1.7 and later."
> I expect you need to either upgrade or install the stdlib module.
Thanks for that.  I knew I missed something.  ... but tell me more about the stdlib option.  I'm a bit leery of depending on the first RC of facter 1.7.  Do you know that stdlib has some answer to this problem or was it just a speculation?
Thanks,
Larry

Dan White

unread,
Apr 13, 2013, 5:38:40 PM4/13/13
to puppet...@googlegroups.com
I can speak directly on this !

You want http://forge.puppetlabs.com/puppetlabs/stdlib/3.2.0

This has the /etc/facter/facts.d/* Magic Pixie Dust in it.

I just went thru a brief panic attack when I updated to Facter 1.7 and puppetlabs-stdlib 4.0.2 !
The changelog says "Remove facter_dot_d for compatibility with external facts” and I had to do some rapid searching and verifying that stuff put into /etc/facter/facts.d/* still worked. Short answer: They do !

As far as details on stdlib, here you go:

https://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppet-labs-standard-library/

https://puppetlabs.com/blog/module-of-the-week-puppetlabs-stdlib-puppet-labs-standard-library-part-2/

https://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3/

I find it very useful. Hope you do as well.

Larry Fast

unread,
Apr 13, 2013, 5:46:28 PM4/13/13
to puppet...@googlegroups.com
Thanks Dan,
I shall hunt down the elusive pixie dust!  BTW, do you know where to look for a compatibility tree between stdlib and puppet version?
Cheers,
Larry


You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/dsqLBBFpwGE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.

Dan White

unread,
Apr 13, 2013, 5:57:42 PM4/13/13
to puppet...@googlegroups.com
On the linked page ! First two sub-headings are “Versions” and “Compatibility”
Reply all
Reply to author
Forward
0 new messages