How to determine best place to put external facts?

13 views
Skip to first unread message

Sean

unread,
Jun 2, 2017, 3:10:10 PM6/2/17
to Puppet Users
Hi,

I am searching for a reasonably good method to determine where I should drop external fact files (like yaml/json files) on an arbitrary unix/linux/mac system...preferably outside of puppet.  It seems different versions and install methods of puppet put the facter/facts.d directory in different places.

For example, on a unix/linux host, suppose I have a cron job that produces a yaml file that I want to access as a fact in some module, role or profile.  The cron job would need to determine where to create the file so that puppet can pull it as a fact.  

Should the cron job just create (if necessary) /etc/facter/facts.d and drop a file in there?  Will that work for most unix/linux platforms and versions of puppet 3 and 4?

Thanks!
Reply all
Reply to author
Forward
0 new messages