summaryrefslogtreecommitdiffstats
path: root/lib/facter/processor.rb
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2011-04-01 17:19:45 +1100
committerJames Turnbull <james@lovedthanlost.net>2011-04-01 17:19:45 +1100
commitb69b2df6f09a7a165c005b3270ee21d1db57eee4 (patch)
treeb1d79db76c2b532bd0d52f2af8a7372106961384 /lib/facter/processor.rb
parentd50db0cd74c8a198567db29ade75287f755a9bee (diff)
parent7c082702c72c168f3e739b9bc1c7562b0aa15ddd (diff)
downloadfacter-b69b2df6f09a7a165c005b3270ee21d1db57eee4.tar.gz
facter-b69b2df6f09a7a165c005b3270ee21d1db57eee4.tar.xz
facter-b69b2df6f09a7a165c005b3270ee21d1db57eee4.zip
Merge remote branch 'barn/tickets/next/5394-Improve_Facter_fact_value_documentation' into next
* barn/tickets/next/5394-Improve_Facter_fact_value_documentation: (#5394) Document each Facter fact.
Diffstat (limited to 'lib/facter/processor.rb')
-rw-r--r--lib/facter/processor.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/facter/processor.rb b/lib/facter/processor.rb
index c71bad4..ec196b2 100644
--- a/lib/facter/processor.rb
+++ b/lib/facter/processor.rb
@@ -1,5 +1,18 @@
+# Fact: processor
+#
+# Purpose:
+# Additional Facts about the machine's CPUs.
+#
+# Resolution:
+# On Linux and kFreeBSD, parse '/proc/cpuinfo' for each processor.
+# On AIX, parse the output of 'lsdev' for it's processor section.
+# On OpenBSD, use 'uname -p' and the sysctl variable for 'hw.ncpu' for CPU
+# count.
+#
+# Caveats:
+#
+
# processor.rb
-# Additional Facts about the machine's CPUs
#
# Copyright (C) 2006 Mooter Media Ltd
# Author: Matthew Palmer <matt@solutionsfirst.com.au>