3
directoryName: Custom Facts
6
Facter does everything it can to make adding custom facts easy. It will
7
autoload any files it finds in a ``facter/`` directory in its search
8
path, so you don't need to modify the package files. Also, Facter will
9
search through your environment for any variables whose names start with
10
'FACTER_' (case insensitive) and automatically add those facts.
12
As a simple example, here is how I publish my home directory to Puppet:
20
I have ~/lib/ruby in my $RUBYLIB environment variable, so I just created
21
~/lib/ruby/facter and dropped the above code into a ``home.rb`` file
22
within that directory.