Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Fix
-
FACT 2.2.0
-
None
-
None
-
None
-
Facter 2.2.0
Puppet 3.6.2
CentOS 6.5
Description
Fact scripts placed in the recommended path of <MODULEPATH>/<MODULE>/facts.d/ get added to clients into the /var/lib/puppet/facts.d directory, but then this directory is only searched for .rb ruby fact snippets by default.
If facter is run explicitly as:
facter --external-dir /var/lib/puppet/facts.d/ <factname>
..then this works fine, as does lookup of the facts in puppet manifests.
However, this seems non-sensical and that the facter default should be to look in the directory which fact scripts are placed into automatically; especially as this is the recommended method of adding external script facts via module magic sync rather than placing them into /etc/facter/facts.d explicitly.