Issue #11612 has been updated by Alex Harvey.

Also new is the warning in the machinfo man page; there's no such warning in 
any of the machinfo man pages on my systems.

Luke #35 - I am not sure what you are quoting there.  It looks like the source 
code for something?  As far as using getconf don't we have the same problem - 
i.e. we can make it work for known models but there's no way of predicting 
codes for future models?

If I'm right about that then the following patch solves the problem -

<pre>
diff --git a/lib/facter/util/processor.rb b/lib/facter/util/processor.rb
index 14c22dc..db258c3 100644
--- a/lib/facter/util/processor.rb
+++ b/lib/facter/util/processor.rb
@@ -87,6 +87,8 @@ module Processor
         elsif line.match(/\d+\s+((?:PA-RISC|Intel).*processors.*)/) then
           cpu = $1.to_s
           cpu.sub!(/processors/, "processor")
+        elsif line.match(/\s+(Intel.*Processor.*)/) then
+          cpu = $1.to_s
         end
       end
     end
</pre>

If people are happy with this approach I'll add the new machinfo as a fixture 
and make another pull request.
----------------------------------------
Bug #11612: add facter support for  ia 11.31 hpux processor discover and a bug 
fix for network interface
https://projects.puppetlabs.com/issues/11612#change-76675

Author: hongbo hu
Status: Merged - Pending Release
Priority: Normal
Assignee: 
Category: library
Target version: 1.6.15
Keywords: facter hpux 
Branch: https://github.com/puppetlabs/facter/pull/232
Affected Facter version: 


1. add cpu information support to facter support HPUX 11.31 IA64

2. when server has  mc-sg  the network card has standby lan card marked
with '*' ,when run faster ,it'll show ifconfig no such interface error

pull requre at github
https://github.com/puppetlabs/facter/pull/127
I'll add more feature for hp and aix 


-- 
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