From: Peter Palfrader Date: Sun, 28 Feb 2010 16:10:44 +0000 (+0100) Subject: mptraid fact X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=95c105b7069860082dca5b7b5b3a987e1730a6b5;p=mirror%2Fdsa-puppet.git mptraid fact --- diff --git a/facts/raidarray.rb b/facts/raidarray.rb index 61e48b610..35a4126f8 100644 --- a/facts/raidarray.rb +++ b/facts/raidarray.rb @@ -32,6 +32,12 @@ Facter.add("megaraid") do end end +Facter.add("mptraid") do + setcode do + FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt9") + end +end + Facter.add("aacraid") do confine :kernel => :linux setcode do