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:
16e180e
)
add fact for megaraid controllers
author
Stephen Gran
<steve@lobefin.net>
Sun, 28 Feb 2010 15:48:42 +0000
(15:48 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 28 Feb 2010 15:48:42 +0000
(15:48 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/raidarray.rb
patch
|
blob
|
history
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
acd46b8
..
61e48b6
100644
(file)
--- a/
facts/raidarray.rb
+++ b/
facts/raidarray.rb
@@
-25,6
+25,13
@@
Facter.add("ThreeWarecontroller") do
end
end
+Facter.add("megaraid") do
+ confine :kernel => :linux
+ setcode do
+ FileTest.exist?("/dev/megadev0")
+ end
+end
+
Facter.add("aacraid") do
confine :kernel => :linux
setcode do