directory_loader.rb

Path: lib/facter/util/directory_loader.rb
Last Update: Sat Feb 23 07:17:42 +0000 2019

A Facter plugin that loads external facts.

Default Unix Directories: /opt/puppetlabs/facter/facts.d, /etc/facter/facts.d, /etc/puppetlabs/facter/facts.d

Beginning with Facter 3, only /opt/puppetlabs/facter/facts.d will be a default external fact directory in Unix.

Default Windows Direcotires: C:\ProgramData\Puppetlabs\facter\facts.d (2008) C:\Documents and Settings\All Users\Application Data\Puppetlabs\facter\facts.d (2003)

Can also load from command-line specified directory

Facts can be in the form of JSON, YAML or Text files and any executable that returns key=value pairs.

Required files

facter   facter/util/config   facter/util/composite_loader   facter/util/parser   yaml  

[Validate]