From: Stephen Gran Date: Sat, 26 Mar 2011 09:38:50 +0000 (+0000) Subject: mpt raid gets confined to linux for now X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=473997967b66dacde3762e236714a4c4e74cf7dd;p=mirror%2Fdsa-puppet.git mpt raid gets confined to linux for now Signed-off-by: Stephen Gran --- diff --git a/modules/debian-org/lib/facter/raidarray.rb b/modules/debian-org/lib/facter/raidarray.rb index 997bf141f..28fdca489 100644 --- a/modules/debian-org/lib/facter/raidarray.rb +++ b/modules/debian-org/lib/facter/raidarray.rb @@ -26,6 +26,7 @@ Facter.add("megaraid") do end Facter.add("mptraid") do + confine :kernel => :linux setcode do FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt0") or FileTest.exist?("/proc/mpt/summary") end