projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DMUP exists
[mirror/dsa-puppet.git]
/
facts
/
raidarray.rb
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
61e48b6
..
997bf14
100644
(file)
--- a/
facts/raidarray.rb
+++ b/
facts/raidarray.rb
@@
-5,13
+5,6
@@
Facter.add("smartarraycontroller") do
end
end
end
end
-Facter.add("mptcontroller") do
- confine :kernel => :linux
- setcode do
- FileTest.exist?("/proc/mpt/summary")
- end
-end
-
Facter.add("ThreeWarecontroller") do
confine :kernel => :linux
setcode do
Facter.add("ThreeWarecontroller") do
confine :kernel => :linux
setcode do
@@
-32,6
+25,12
@@
Facter.add("megaraid") do
end
end
end
end
+Facter.add("mptraid") do
+ setcode do
+ FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt0") or FileTest.exist?("/proc/mpt/summary")
+ end
+end
+
Facter.add("aacraid") do
confine :kernel => :linux
setcode do
Facter.add("aacraid") do
confine :kernel => :linux
setcode do