Skip to content

Commit

Permalink
Merge pull request jhoblitt#11 from razorsedge/supermicro
Browse files Browse the repository at this point in the history
add megaraid fact support for Supermicro branded LSI controllers
  • Loading branch information
jhoblitt committed Oct 3, 2013
2 parents 16045b6 + fe0c07d commit 66c4157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ and enables the `smartd` service.
If your hardware supports it, `smartd` can automatically probe for the drives,
but if they are hidden behind a RAID controller, it will need additional help.
The module includes a facter plugin to identify drives hiding behind an LSI
MegaRAID/Dell PERC controller on Linux systems if you have the LSI proprietary
`MegaCli` tool installed; we don't have any FreeBSD machines with this
controller so haven't written the necessary code to use FreeBSD's standard
MegaRAID/Dell PERC/Supermicro controller on Linux systems if you have the LSI
proprietary `MegaCli` tool installed; we don't have any FreeBSD machines with
this controller so haven't written the necessary code to use FreeBSD's standard
`mfiutil(8)` utility instead. The `shell_config` module is required to edit a
Debian-specific configuration file; other OS families do not require it.

Expand Down
2 changes: 1 addition & 1 deletion lib/facter/megaraid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def lsscsi_usable?
confine :kernel => [ :Linux ]
setcode do
if megacli_usable?
list = Facter::Util::Resolution.exec('lsscsi | awk \'{ if($2 == "disk" && $3 == "LSI") { print $6 } }\'')
list = Facter::Util::Resolution.exec('lsscsi | awk \'{ if($2 == "disk" && ($3 == "LSI" || $3 == "SMC")) { print $6 } }\'')
list.map(&:chomp).sort.join(',')
end
end
Expand Down

0 comments on commit 66c4157

Please sign in to comment.