I'm fairly new to puppet and seem to be having issues deploying custom facts. What we're trying to do is check the version of java and a few vendor components on a select number of servers. For this reason, we were wanting to deploy facts to just these servers. So we created a custom module javanodein the following manner
/opt/puppet/manifests
/opt/puppet/modules
-> javanode
->lib
-> facter
->java.rb
I can see that the fact is pulling in the information that we're looking for, so I decided to give it a run to make sure it got deployed appropriately. To test that it wouldn't be deployed unless we wanted to push it to a node, I made no calls to the module and just ran a quick
sudo puppet agent --test --debug --noop
To my surprise, I saw the following:
Notice: /File[/var/lib/puppet/lib/facter/java.rb]/ensure: defined content as '{md5}b547450e9b0697c20604a70e9cd17d0c'
I've tried this on multiple nodes and see the same result. Could someone point me in the direction of what I may be doing wrong? We're currently running facter 1.7.3 and puppet 3.3.2.
↧