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:
1c412ac
)
Add megaraid_sas facter
author
Peter Palfrader
<peter@palfrader.org>
Wed, 7 Nov 2018 18:08:38 +0000
(19:08 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 7 Nov 2018 18:08:43 +0000
(19:08 +0100)
modules/debian_org/lib/facter/raidarray.rb
patch
|
blob
|
history
diff --git
a/modules/debian_org/lib/facter/raidarray.rb
b/modules/debian_org/lib/facter/raidarray.rb
index
322050a
..
c9cf762
100644
(file)
--- a/
modules/debian_org/lib/facter/raidarray.rb
+++ b/
modules/debian_org/lib/facter/raidarray.rb
@@
-50,6
+50,17
@@
Facter.add("megaraid") do
end
end
+Facter.add("megaraid_sas") do
+ confine :kernel => :linux
+ setcode do
+ if FileTest.exist?("/dev/megaraid_sas_ioctl_node")
+ true
+ else
+ false
+ end
+ end
+end
+
Facter.add("mptraid") do
confine :kernel => :linux
setcode do