From: Stephen Gran Date: Sun, 31 Jan 2010 17:04:23 +0000 (+0000) Subject: add aacraid fact X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=d58296c3170f2a07cd92f126d46e3e83be037033;p=mirror%2Fdsa-puppet.git add aacraid fact Signed-off-by: Stephen Gran --- diff --git a/facts/raidarray.rb b/facts/raidarray.rb index 2bc3f0ed1..acd46b845 100644 --- a/facts/raidarray.rb +++ b/facts/raidarray.rb @@ -25,6 +25,13 @@ Facter.add("ThreeWarecontroller") do end end +Facter.add("aacraid") do + confine :kernel => :linux + setcode do + FileTest.exist?("/dev/aac0") + end +end + Facter.add("swraid") do confine :kernel => :linux setcode do