]> git.openstreetmap.org Git - chef.git/commitdiff
Remove hpssacli with ssacli
authorTom Hughes <tom@compton.nu>
Tue, 24 Oct 2017 14:39:44 +0000 (15:39 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 24 Oct 2017 14:39:44 +0000 (15:39 +0100)
cookbooks/hardware/recipes/default.rb
cookbooks/hardware/templates/default/ohai.rb.erb

index e067a0b10cef29b26d33c9dbcfc7318235798786..a0544149c4a9e0543fc4fb5f96ef2aedeb4baf10 100644 (file)
@@ -206,10 +206,10 @@ status_packages = {}
 node[:kernel][:modules].each_key do |modname|
   case modname
   when "cciss"
-    tools_packages << "hpssacli"
+    tools_packages << "ssacli"
     status_packages["cciss-vol-status"] ||= []
   when "hpsa"
-    tools_packages << "hpssacli"
+    tools_packages << "ssacli"
     status_packages["cciss-vol-status"] ||= []
   when "mptsas"
     tools_packages << "lsiutil"
@@ -243,7 +243,7 @@ node[:block_device].each do |name, attributes|
   end
 end
 
-%w[hpssacli lsiutil sas2ircu megactl megacli arcconf].each do |tools_package|
+%w[ssacli lsiutil sas2ircu megactl megacli arcconf].each do |tools_package|
   if tools_packages.include?(tools_package)
     package tools_package
   else
index 1c19a450f5c82f7caca17a98205d40bbda8c089f..52c0752ea9335fe6342dbe26621eda42c1cf0aab 100644 (file)
@@ -148,7 +148,7 @@ Ohai.plugin(:Hardware) do
     find_direct_disks(disk)
     find_nvme_disks(disk)
 
-    find_hp_disks(disk) if File.exist?("/usr/sbin/hpssacli")
+    find_hp_disks(disk) if File.exist?("/usr/sbin/ssacli")
     find_megaraid_disks(disk) if File.exist?("/usr/sbin/megacli")
     find_mpt1_disks(disk) if File.exist?("/usr/sbin/lsiutil")
     find_mpt2_disks(disk) if File.exist?("/usr/sbin/sas2ircu")
@@ -286,7 +286,7 @@ Ohai.plugin(:Hardware) do
     array = nil
     disk = nil
 
-    IO.popen(%w(hpssacli controller all show config detail)).each do |line|
+    IO.popen(%w(ssacli controller all show config detail)).each do |line|
       if line =~ /^Smart Array (\S+) /
         controller = {
           :id => devices[:controllers].count,