summaryrefslogtreecommitdiff
path: root/lib/puppet/facter/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/facter/README.markdown')
-rw-r--r--lib/puppet/facter/README.markdown22
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.