diff options
author | James Turnbull <james@lovedthanlost.net> | 2011-04-01 17:19:45 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-04-01 17:19:45 +1100 |
commit | b69b2df6f09a7a165c005b3270ee21d1db57eee4 (patch) | |
tree | b1d79db76c2b532bd0d52f2af8a7372106961384 /lib/facter/processor.rb | |
parent | d50db0cd74c8a198567db29ade75287f755a9bee (diff) | |
parent | 7c082702c72c168f3e739b9bc1c7562b0aa15ddd (diff) | |
download | facter-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.rb | 15 |
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> |