Environment is:
EC2 Amazon Linux AMI
puppet version 3.7.5 with puppetmaster
facter version 2.2.0
Test Case:
Create a test file:
-- modules
-- my_test_fact
-- lib
-- facter
-- my_test_fact.rb
vim my_test_fact.rb
Facter.add("my_fact") { setcode { "my_fact" } }
Run puppet: puppet agent -t
Shows the updated fact being loaded.
facter -p shows
my_fact => "my_fact"
Edit /etc/rc.local
facter -p > /tmp/facter_run.log
puppet agent -t > /tmp/puppet_run.log
Reboot the server
cat /tmp/facter_run.log
my_fact doesn't exist also running puppet the fact isn't loaded (i've test this by trying to use it)
Not sure what I'm missing here as I'm pretty sure this used to work or maybe I'm running it from /etc/rc.local incorrectly?
------------ Our Legal Fees At Work -----------------------------------
This communication and its contents are confidential and may contain protected intellectual property or other information protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication or its contents in error, please notify Findly immediately by replying to this message and then delete this communication and its contents from your system.