hardware: Remove legacy G4 cleanup code
authorGrant Slater <git@firefishy.com>
Tue, 4 Sep 2018 17:00:37 +0000 (18:00 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 4 Sep 2018 17:00:37 +0000 (18:00 +0100)
cookbooks/hardware/recipes/default.rb

index 936ffb0..564e530 100644 (file)
@@ -93,21 +93,6 @@ when "IBM"
   units << "0"
 end
 
-# Remove legacy HP G4 support which breaks modern hp-health 10.4
-if manufacturer == "HP"
-  %w[/opt/hp/hp-health/bin/hpasmd /usr/lib/libhpasmintrfc.so.3.0 /usr/lib/libhpasmintrfc.so.3 /usr/lib/libhpasmintrfc.so].each do |filename|
-    file filename do
-      action :delete
-      manage_symlink_source false
-    end
-  end
-
-  directory "/opt/hp/hp-legacy" do
-    action :delete
-    recursive true
-  end
-end
-
 units.sort.uniq.each do |unit|
   if node[:lsb][:release].to_f >= 16.04
     service "serial-getty@ttyS#{unit}" do