Issue #11609 has been updated by Jeff McCune.

Alex,

To keep up momentum on this issue, I think any decision is better than waiting 
around for the "right" decision on this one.  I propose we implement this 
behavior for the processorN facts.

Overall principle: the processorN facts should be least surprising to _puppet_ 
users rather than _hpux_ users.  I think this is a good overall principle 
because I originally implemented all of the Mac OS X specific facts that come 
out of system profiler.  These facts all have the prefix "sp_" which makes them 
less surprising for Mac OS X administrators, but rather surprising for Puppet 
users.  "You mean I have the sp_number_processors fact _and_ the processorcount 
fact, and they're both X?  Surprising."

To that end, we implement the behavior of:

1. Take a list of all the processor identifiers for the platform, represented 
as system-native identifiers in strings.
2. Sort the list
3. Assign an incrementing from 0 integer index to each identifier.
4. Store the value of the system identifier in the processorX fact where X is 
the incrementing index.

This should produce an idempotent and stable implementation that matches up 
with the principle of least surprise for other Puppet users.  We think this is 
"best" based on experience with other system-specific facts like Mac OS X 
system profiler.

( +1 or -1 ) ?

-Jeff
----------------------------------------
Bug #11609: aix facter show additional number ahead the cpu model
https://projects.puppetlabs.com/issues/11609#change-73739

Author: hongbo hu
Status: Investigating
Priority: Normal
Assignee: Jeff McCune
Category: library
Target version: 
Keywords: aix facter
Branch: 
Affected Facter version: 1.6.4


processor0 => 0PowerPC_POWER6


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