From: Stephen Gran Date: Sun, 28 Feb 2010 15:48:42 +0000 (+0000) Subject: add fact for megaraid controllers X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=63b9115b2cc08a051429c700b4a8c806ffdd893d;p=mirror%2Fdsa-puppet.git add fact for megaraid controllers Signed-off-by: Stephen Gran --- diff --git a/facts/raidarray.rb b/facts/raidarray.rb index acd46b845..61e48b610 100644 --- a/facts/raidarray.rb +++ b/facts/raidarray.rb @@ -25,6 +25,13 @@ Facter.add("ThreeWarecontroller") do end end +Facter.add("megaraid") do + confine :kernel => :linux + setcode do + FileTest.exist?("/dev/megadev0") + end +end + Facter.add("aacraid") do confine :kernel => :linux setcode do