Trying to get a custom fact to pushed up to foreman so it can be reported on or viewed by other people. Seems like the reason it doesn't get uploaded is because it only runs with when using
$ facter --puppet
Been searching for how to do this and everything I get is about distributing facts through puppet and pluginsync. That is all working fine. I can use the fact in my MOTD module.
Where do I need to put the file to have it displayed in a normal facter run?
# facter bday
$ facter -p bday
Jul 31 20:45
If it helps, here is the code from /etc/puppet/environments/test/modules/admin/lib/facter/bday.rb
require 'facter'
Facter.add(:bday) do
setcode do
Facter::Util::Resolution.exec("/bin/ls -l /root/anaconda-ks.cfg | /bin/awk '{print \$6 \" \" \$7 \" \" \$8}'")
end
end