custom facts with stdlib
Facter 1.6.18 / puppet 2.7..26
I would like to create some custom facts. I know that the ability was added in Facter 1.7 , but I keep reading references that the stdlib module allows custom facts. As far as I can tell, I'm using the stdlib module (I can't find the version number), but I can't figure out how to add custom facts with stdlib.
Update: @Tozz gave me the boost I needed to phrase my question better.
The stdlib module includes includes a file
/etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb which says
# A Facter plugin that loads facts from /etc/facter/facts.d # and /etc/puppetlabs/facter/facts.d. # # Facts can be in the form of JSON, YAML or Text files # and any executable that returns key=value pairs.
So I put a file
/etc/facter/facts.d/test.txt including this one line
But when I run
facter, I don't see my fact anywhere. This is what I am trying to do. Do I need to "activate" this feature somehow?
PS please don't ask me to upgrade. That is not an option.