projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27a307
)
mptraid fact
author
Peter Palfrader
<peter@palfrader.org>
Sun, 28 Feb 2010 16:10:44 +0000
(17:10 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sun, 28 Feb 2010 16:10:44 +0000
(17:10 +0100)
facts/raidarray.rb
patch
|
blob
|
history
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