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:
16802b8
)
another try at auto fact distribution (and incidentally test for mpt
author
Stephen Gran
<steve@lobefin.net>
Sun, 1 Mar 2009 14:04:03 +0000
(14:04 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 1 Mar 2009 14:04:03 +0000
(14:04 +0000)
arrays)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/raidcontroller.rb
patch
|
blob
|
history
diff --git
a/facts/raidcontroller.rb
b/facts/raidcontroller.rb
index
275c5fa
..
1a87a36
100644
(file)
--- a/
facts/raidcontroller.rb
+++ b/
facts/raidcontroller.rb
@@
-12,3
+12,10
@@
Facter.add("raidcontroller") do
ishp
end
end
+Facter.add("mptcontroller") do
+ confine :kernel => :linux
+ ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
+ setcode do
+ FileTest.exist?("/proc/mpt/info")
+ end
+end