From 384ffd957153f65eb4f47b3142d98853c31b4124 Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Wed, 23 Feb 2011 14:05:56 -0500 Subject: Initial commit --- lib/puppet/facter/README.markdown | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/puppet/facter/README.markdown (limited to 'lib/puppet/facter/README.markdown') 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. -- cgit v1.2.3