From 284a4b136326c3045aa432be3f7fa690e3ec445d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 7 Nov 2018 19:08:38 +0100 Subject: [PATCH] Add megaraid_sas facter --- modules/debian_org/lib/facter/raidarray.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/debian_org/lib/facter/raidarray.rb b/modules/debian_org/lib/facter/raidarray.rb index 322050af9..c9cf762ad 100644 --- a/modules/debian_org/lib/facter/raidarray.rb +++ b/modules/debian_org/lib/facter/raidarray.rb @@ -50,6 +50,17 @@ Facter.add("megaraid") do end end +Facter.add("megaraid_sas") do + confine :kernel => :linux + setcode do + if FileTest.exist?("/dev/megaraid_sas_ioctl_node") + true + else + false + end + end +end + Facter.add("mptraid") do confine :kernel => :linux setcode do -- 2.20.1