Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
Fixed #1966 - Added physicalprocessorcount fact
Browse files Browse the repository at this point in the history
  • Loading branch information
jamtur01 committed Feb 13, 2009
1 parent 94ea807 commit a99d043
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG
@@ -1,5 +1,7 @@
1.5.4:
Changes to Solaris facts:
Fixed #1966 - Added physicalprocessorcount fact

Fixed #1761 - changes to Solaris facts:
operatingsystemrelease == kernel release or uname -r
kernelrelease == uname -r
kernelversion == uname -v
Expand Down
7 changes: 7 additions & 0 deletions lib/facter/physicalprocessorcount.rb
@@ -0,0 +1,7 @@
Facter.add("physicalprocessorcount") do
confine :kernel => :linux

setcode do
ppcount = Facter::Util::Resolution.exec('grep "physical id" /proc/cpuinfo|cut -d: -f 2|sort -u|wc -l')
end
end

0 comments on commit a99d043

Please sign in to comment.