facter 3.0 not using /etc/facter/facts.d by default

68 views
Skip to first unread message

math...@therussells.me

unread,
Jun 25, 2015, 10:01:44 AM6/25/15
to puppet...@googlegroups.com
I just upgraded to puppet4.2 aio on some machines to fix a bug we have been having with puppet. 

But this introduced a new problem. It seems like out custom facts are not being loaded by puppet or facter. 

We have 3 external facts manually set in files. 

[root@xxxxx facts.d]# ll /etc/facter/facts.d/
total
12
-rw------- 1 root root 16 Jun 11 09:34 datacenter.txt
-rw------- 1 root root 13 Jun 11 09:34 stack.txt
-rw------- 1 root root 12 Jun 11 09:34 track.txt




but facter does not see them by default

[root@xxxxx facts.d]# /opt/puppetlabs/bin/facter | grep stack


If i use the externa-dir option it works. 

[root@java-d11ah facts.d]# /opt/puppetlabs/bin/facter --external-dir /etc/facter/facts.d/ | grep stack
stack
=> javaact


I dont see anything in the release notes that would of changed this. 


math...@therussells.me

unread,
Jun 25, 2015, 10:35:36 AM6/25/15
to puppet...@googlegroups.com
I think this is a documentation issue only. 

Looking at this ticket 


I see mention of a different fact directory. Once i copied my facts to that new directory it picks them up. 

Josh Cooper

unread,
Jun 25, 2015, 3:36:14 PM6/25/15
to puppet...@googlegroups.com
This is an unintended change. It is being tracked as https://tickets.puppetlabs.com/browse/FACT-1055, and a puppet-agent update should be released soon. 
Reply all
Reply to author
Forward
0 new messages