1 Facter.add("smartarraycontroller") do
2 confine :kernel => :linux
4 FileTest.exist?("/dev/cciss/")
8 Facter.add("mptcontroller") do
9 confine :kernel => :linux
11 FileTest.exist?("/proc/mpt/summary")
15 Facter.add("ThreeWarecontroller") do
16 confine :kernel => :linux
19 if FileTest.exist?("/proc/scsi/scsi")
20 IO.foreach("/proc/scsi/scsi") { |x|
21 is3w = "true" if x =~ /Vendor: 3ware/
28 Facter.add("swraid") do
29 confine :kernel => :linux
32 if FileTest.exist?("/proc/mdstat") && FileTest.exist?("/sbin/mdadm")
33 IO.foreach("/proc/mdstat") { |x|
34 swraid = "true" if x =~ /md[0-9]+ : active/