I have a few custom facts on the puppet server in the standard location:
[module_dir]/lib/puppet/facter/[fact_name].rb
Here is an example:
require 'facter'
Facter.add("fact_name") do
setcode do
"fact_name_value"
end
end
I see they are being downloaded to the expected location on the puppet client:
C:\ProgramData\PuppetLabs\puppet\var\lib\puppet\facter\[fact_name].rb
However when I run facter.bat -p
on the client I don't get fact_name => fact_name_value
in the output.