projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mptraid fact
[mirror/dsa-puppet.git]
/
facts
/
raidarray.rb
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
61e48b6
..
35a4126
100644
(file)
--- 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