Fixed #1966 - Added physicalprocessorcount fact
James Turnbull
15 years ago
0 | 0 |
1.5.4:
|
1 | |
Changes to Solaris facts:
|
|
1 |
Fixed #1966 - Added physicalprocessorcount fact
|
|
2 |
|
|
3 |
Fixed #1761 - changes to Solaris facts:
|
2 | 4 |
operatingsystemrelease == kernel release or uname -r
|
3 | 5 |
kernelrelease == uname -r
|
4 | 6 |
kernelversion == uname -v
|
|
0 |
Facter.add("physicalprocessorcount") do
|
|
1 |
confine :kernel => :linux
|
|
2 |
|
|
3 |
setcode do
|
|
4 |
ppcount = Facter::Util::Resolution.exec('grep "physical id" /proc/cpuinfo|cut -d: -f 2|sort -u|wc -l')
|
|
5 |
end
|
|
6 |
end
|