Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Won't Fix
-
Affects Version/s: FACT 2.2.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:
Facter 2.2.0
Puppet 3.6.2
CentOS 6.5
-
Template:customfield_10700 49740
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.