Skip to content

Adds fact about machine's RAID Controller#181

Closed
LarsFronius wants to merge 2 commits intopuppetlabs:masterfrom
LarsFronius:raid
Closed

Adds fact about machine's RAID Controller#181
LarsFronius wants to merge 2 commits intopuppetlabs:masterfrom
LarsFronius:raid

Conversation

@LarsFronius
Copy link
Copy Markdown

This adds a small fact to read out machine's raid controllers.
We use it to check RAID Controller on host and install the matching utils.
We also feed our nagios raid check with information from it.

@vholer
Copy link
Copy Markdown

vholer commented Mar 1, 2012

I like more this approach:
https://github.com/kumina/fact-pci_devices/blob/master/pci_devices.rb
This could be easily modified to detect any other devices (RAID, InfiniBand, GPU cards etc.)

I'm commenting on this patch only because I'm solving previous problem (module for nvidia, infiniband etc.) right now and don't want to replicate lspci parsing code between independent modules. I would like to see a generic lspci parsing code in Facter::Util:: reused in a device specific facter libs. (raid.rb, ib.rb etc). This is just my idea, dont' know if it's good approach.

@LarsFronius
Copy link
Copy Markdown
Author

Yeah, that would be nice. The pci_devices.rb is a good start also.

I will take a look if I can start with that Facter::Util thingy! Thanks! The other approach would be a gigantic pci_devices_do_it_all.rb thingy, which nobody wants to see, indead!

@kbarber
Copy link
Copy Markdown

kbarber commented Mar 2, 2012

Hi @LarsFronius - thanks for the submission - can you please raise a ticket on this if one doesn't already exist:

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

So we can track the requirement? (versus just the code submission).

You'll need to reference the ticket in any commit messages. Also - be aware that any code we accept will require rspec tests to be added before it can go into core.

@kbarber
Copy link
Copy Markdown

kbarber commented Apr 8, 2012

Is this pull request still active @LarsFronius?

@LarsFronius
Copy link
Copy Markdown
Author

Hi and sorry for my late response, we are quite busy right now. I work on a generic fact wrapper around lspci and a puppet module to work with this fact to install the right raid check utilities for your specific raid controller on debian systems.
So yeah, it is basically still active, but I won't mind if one comes up with a solution faster :)

@jeffmccune
Copy link
Copy Markdown

@LarsFronius Thanks for this patch, unfortunately we can't merge it as it currently stands without some automated tests of the expected behavior. Please know that we value the contribution, we're just trying to make sure things that are open are being actively worked on.

Here's my snippet on the subject.

I'm going to go ahead and close this pull request for the time being. Please re-open this pull request once the next actions are addressed, new information is available, or you have a question related to this pull request. We've become aware of difficulties re-opening pull requests, in the event you cannot please mention jeffmccune or adrienthebo with an @ sign in front and we'll re-open this pull request.

Closing the pull request doesn't mean we don't consider this change valuable, just that there are things that need to be addressed before it can be merged. If you have any questions or concerns, please don't hesitate to ping us in #puppet-dev on irc.freenode.net.

@jeffmccune jeffmccune closed this Apr 1, 2013
whopper pushed a commit to whopper/facter that referenced this pull request Mar 18, 2015
(CFACT-122, CFACT-127) Fix ruby detection under rbenv and Fedora.
florindragos pushed a commit that referenced this pull request Jun 15, 2020
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.

4 participants