projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tell barber, biber, fasch, field to relay through mailout
[mirror/dsa-puppet.git]
/
facts
/
raidarray.rb
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
8a09a71
..
2bc3f0e
100644
(file)
--- a/
facts/raidarray.rb
+++ b/
facts/raidarray.rb
@@
-1,15
+1,7
@@
Facter.add("smartarraycontroller") do
confine :kernel => :linux
Facter.add("smartarraycontroller") do
confine :kernel => :linux
- ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
setcode do
setcode do
- ishp = "false"
- lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
- if $?.exitstatus == 0
- %x{lspci 2>&1}.each { |s|
- ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
- }
- end
- ishp == "true"
+ FileTest.exist?("/dev/cciss/")
end
end
end
end
@@
-20,7
+12,7
@@
Facter.add("mptcontroller") do
end
end
end
end
-Facter.add("
3w
arecontroller") do
+Facter.add("
ThreeW
arecontroller") do
confine :kernel => :linux
setcode do
is3w = "false"
confine :kernel => :linux
setcode do
is3w = "false"