From: Peter Palfrader Date: Sun, 17 Mar 2013 10:44:01 +0000 (+0100) Subject: make smartarray facter work with hpsa X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=94e36ff590da9610abc82e55675de9bb5e3c3771;p=dsa-puppet.git make smartarray facter work with hpsa --- diff --git a/modules/debian-org/lib/facter/raidarray.rb b/modules/debian-org/lib/facter/raidarray.rb index d0d13092..7dc29c3e 100644 --- a/modules/debian-org/lib/facter/raidarray.rb +++ b/modules/debian-org/lib/facter/raidarray.rb @@ -3,6 +3,8 @@ Facter.add("smartarraycontroller") do setcode do if FileTest.exist?("/dev/cciss/") true + elsif FileTest.exist?("/sys/module/hpsa/") + true else '' end