Issue #7996 has been updated by Adrien Thebo.

Assignee changed from Merritt Krakowitzer to Adrien Thebo
Branch changed from 
https://github.com/mkrakowitzer/facter/tree/feature%2Fmaster%2F7996-adds-solaris-processor-facts
 to 
https://github.com/adrienthebo/facter/tree/ticket/master/7996-add_solaris_processor_facts
 

Did a little cleanup on Merriott's work and added unit tests.
----------------------------------------
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.

Reply via email to