Install raid tools for MegaRAID and AACRaid cards
authorTom Hughes <tom@compton.nu>
Tue, 5 Nov 2013 23:00:40 +0000 (23:00 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 5 Nov 2013 23:00:40 +0000 (23:00 +0000)
cookbooks/hardware/attributes/default.rb
cookbooks/hardware/recipes/default.rb

index 73940d9b7d29cda002eb0e2837bac5b4427efe02..24dc2505d2f845f4e7eb375b663ca2091a3e7ebc 100644 (file)
@@ -13,4 +13,12 @@ if node[:kernel] and node[:kernel][:modules]
   if node[:kernel][:modules].include?("mpt2sas")
     default[:apt][:sources] |= [ "hwraid" ]
   end
+
+  if node[:kernel][:modules].include?("megaraid_sas")
+    default[:apt][:sources] |= [ "hwraid" ]
+  end
+
+  if node[:kernel][:modules].include?("aacraid")
+    default[:apt][:sources] |= [ "hwraid" ]
+  end
 end
index 4b7e4478de57467cc601ad66190b60b7e789234b..e9fe54e053d2d6bedd3a7e8752b5ad3e6b093b3b 100644 (file)
@@ -146,3 +146,13 @@ if node[:kernel][:modules].include?("mpt2sas")
   package "sas2ircu"
   package "sas2ircu-status"
 end
+
+if node[:kernel][:modules].include?("megaraid_sas")
+  package "megacli"
+  package "megaclisas-status"
+end
+
+if node[:kernel][:modules].include?("aacraid")
+  package "arcconf"
+  package "aacraid-status"
+end