]> git.openstreetmap.org Git - chef.git/commitdiff
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 936ffb01b4d3d360071f562c5b5a8e3ca3a9e4b8..564e530187d3e25c9e3034c779916ef71d89864c 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