Issue #7996 has been updated by Merritt Krakowitzer.
Thanks for updating my code or should i say rewriting it :) I think you should consider confining these facts to solaris 10/11 kstat and psrinfo are not available on Solaris 8/9 and many companies still have Solaris 8/9 that also use facter. I know we do. ---------------------------------------- Feature #7996: Solaris 10/11 fact for physicalprocessorcount and ProcessorCount https://projects.puppetlabs.com/issues/7996 Author: Merritt Krakowitzer Status: In Topic Branch Pending Merge Priority: Normal Assignee: Adrien Thebo Category: library Target version: 1.6.x Keywords: Branch: https://github.com/adrienthebo/facter/tree/ticket/master/7996-add_solaris_processor_facts 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.
