Skip to content

let facter support ia 11.31 hpux#127

Closed
huhongbo wants to merge 2 commits intopuppetlabs:masterfrom
huhongbo:topic
Closed

let facter support ia 11.31 hpux#127
huhongbo wants to merge 2 commits intopuppetlabs:masterfrom
huhongbo:topic

Conversation

@huhongbo
Copy link

add cpu information support to facter support HPUX 11.31 IA64

add cpu information support to faster support HPUX 11.31 IA64
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
@kbarber
Copy link

kbarber commented Dec 29, 2011

Hi @huhongbo thanks for the submission.

I'm always happy to receive HP-UX improvements to Facter - we have so little contributors from that front so its much appreciated :-).

Before we accept it though - can you please raise a Redmine request for this pull request?

http://projects.puppetlabs.com/projects/facter

Also - if you haven't already, you'll need to ensure you have signed the CLA (we need this before we merge code from any new contributor):

https://projects.puppetlabs.com/contributor_licenses/sign

Cheers :-).

ken.

@huhongbo
Copy link
Author

I'm test puppet and Facter on HP and IBM platform. My and My team will add more feature to these two platform.

@slippycheeze
Copy link

G'day @huhongbo. I was hoping you might have a chance to file a redmine ticket for the pull request, and sign the CLA if required, so that we can merge this code?

@huhongbo
Copy link
Author

I have file a redmin ticket for the pull. But It lack the spec test now

@kbarber
Copy link

kbarber commented Jan 24, 2012

Redmine ticket is here:

http://projects.puppetlabs.com/issues/11612

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing a check here for model =~ /IBM/ - as this throws an error. What was your intention here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the type mistake,
the Origin line is "if model =~ /IBM/"
just miss the space

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not the space per se 'model' just doesn't exist. I guess you just really wanted to tap into the model fact at this point?

In regards to the intention - looks like HP-UX has an lsdev command as well, and that is returning an undesirable response is this correct? Or does this work fine on IBM hardware for HP-UX or something strange like that?

If its an AIX versus HP-UX problem then we should probably check on operatingsystem instead of model. I'm just trying to understand the combinations required for success here, while trying to avoid breaking it for another platform.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that ,I review the code, HP does exist the lsdev ,but it total diff with ibm's lsdev ,IBM AIX Lsdev return the device list ,But HP don't
I try the Let the IBM do the Lsdev and HP do ioscan module

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting
Error: undefined local variable or method `model' for Facter::Util::Processor:Module

After adding
model = Facter::Util::Resolution.exec('model')
before this line, it seems to work.

@slippycheeze
Copy link

@mmoll - hey there. Looks like you have used these facts a bit, and added some comments. If they address the issues Ken raised, we would love to bring them in - would you submit a new pull request with the improved version?

@mmoll
Copy link

mmoll commented Mar 6, 2012

@daniel-pittman - sure, but I would like to have pull request #185 handled first, because the changes there are independent from from the ones here.

@jeffweiss
Copy link

mmoll has an updated version in #232. Once that is merged, this can be closed.

@HAIL9000
Copy link

Since #232 covers the last bit of this, we'll just close this and concentrate on #232.

@HAIL9000 HAIL9000 closed this Jun 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants