Issue #7996 has been reported by Merritt Krakowitzer.
----------------------------------------
Feature #7996: Solaris 10/11 fact for physicalprocessorcount and ProcessorCount
https://projects.puppetlabs.com/issues/7996
Author: Merritt Krakowitzer
Status: Unreviewed
Priority: Normal
Assignee: Merritt Krakowitzer
Category:
Target version:
Keywords:
Branch:
Affected Facter version:
As soon as I figure out how to commit this :)
<pre>
if Facter.value(:kernel) == "SunOS"
Facter.add("ProcessorCount") do
confine :operatingsystem => :solaris
confine :virtual => :physical
setcode do
Facter::Util::Resolution.exec("/usr/bin/kstat cpu_info |
/usr/bin/grep core_id | /usr/bin/uniq | /usr/bin/wc -l")
end
end
end
if Facter.value(:kernel) == "SunOS"
Facter.add("physicalprocessorcount") do
confine :operatingsystem => :solaris
confine :virtual => :physical
setcode do
Facter::Util::Resolution.exec("/usr/sbin/psrinfo -p")
end
end
end
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.