projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add arm-ubc to misc/local
[mirror/dsa-puppet.git]
/
modules
/
debian_org
/
lib
/
facter
/
raidarray.rb
diff --git
a/modules/debian_org/lib/facter/raidarray.rb
b/modules/debian_org/lib/facter/raidarray.rb
index
322050a
..
b313ce7
100644
(file)
--- 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?("/sys/module/megaraid_sas/")
+ true
+ else
+ false
+ end
+ end
+end
+
Facter.add("mptraid") do
confine :kernel => :linux
setcode do