diff options
author | Jeff McCune <jeff@puppetlabs.com> | 2011-02-23 14:05:56 -0500 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2011-02-23 14:05:56 -0500 |
commit | 384ffd957153f65eb4f47b3142d98853c31b4124 (patch) | |
tree | a46170c873e3e93a3261a1a93eb72a8466e8abba /lib/puppet/facter |
Initial commit
Diffstat (limited to 'lib/puppet/facter')
-rw-r--r-- | lib/puppet/facter/README.markdown | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/puppet/facter/README.markdown b/lib/puppet/facter/README.markdown new file mode 100644 index 0000000..2b96273 --- /dev/null +++ b/lib/puppet/facter/README.markdown @@ -0,0 +1,22 @@ +Facter +====== + +Define facts in this directory. + +Sometimes you need to be able to write conditional expressions based +on site-specific data that just isn’t available via Facter. The +solution may be to add a fact to Facter. These additional facts can +then be distributed to Puppet clients and are available for use in +manifests. Learn more at +http://projects.puppetlabs.com/projects/puppet/wiki/Adding_Facts + +File paths should match the fact name; for example, a fact +`hardware_platform`, defined like this: + + Facter.add("hardware_platform") do + setcode do + %x{/bin/uname -i}.chomp + end + end + +Should be found in `hardware_platform.rb` in this directory. |