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:
58010b2
)
Merge mptcontroller and mptraid facts
author
Peter Palfrader
<peter@palfrader.org>
Sun, 28 Feb 2010 16:17:51 +0000
(17:17 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sun, 28 Feb 2010 16:17:51 +0000
(17:17 +0100)
facts/raidarray.rb
patch
|
blob
|
history
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
35a4126
..
592f006
100644
(file)
--- a/
facts/raidarray.rb
+++ b/
facts/raidarray.rb
@@
-5,13
+5,6
@@
Facter.add("smartarraycontroller") do
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
@@
-34,7
+27,7
@@
end
Facter.add("mptraid") do
setcode do
- FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt9")
+ FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt9")
or FileTest.exist?("/proc/mpt/summary")
end
end