Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3ed96fc1c3
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.741 kb
# Fact: raid
#
# Purpose:
# Return details about active hardware RAID volumes and controllers
#
# Resolution:
# Use the blockdevices fact to identify RAID controllers, then use their RAID tools to get details about them
#
# Caveats:
# Only supports Linux at this time
# Requires the blockdevice fact
#
# From http://github.com/jasongill/facter-factpack
require 'facter'
if Facter.value("is_virtual") == "false" and Facter.value("kernel") == "Linux" and Facter.value("blockdevices")
# Only supported on Linux outside of virtualization for now, and requires the blockdevice fact
# TODO: Determine the installed RAID card vendor by parsing each blockdevice fact in turn, then use their RAID tools (if available) to get info
end
Jump to Line
Something went wrong with that request. Please try again.