projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
adfa689
)
Remove traces of hp-legacy which break modern hp-health
author
Grant Slater
<git@firefishy.com>
Mon, 17 Oct 2016 22:44:37 +0000
(23:44 +0100)
committer
Grant Slater
<git@firefishy.com>
Mon, 17 Oct 2016 22:44:37 +0000
(23:44 +0100)
cookbooks/hardware/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/hardware/recipes/default.rb
b/cookbooks/hardware/recipes/default.rb
index 657395cf1b831dd29b73d0b57e43846556947a69..35e31ea2e2fc3d644e78dcba19f7c1434aaf714b 100644
(file)
--- a/
cookbooks/hardware/recipes/default.rb
+++ b/
cookbooks/hardware/recipes/default.rb
@@
-76,6
+76,29
@@
when "IBM"
units << "0"
end
units << "0"
end
+# Remove legacy HP G4 support which breaks modern hp-health 10.4
+if manufacturer == "HP"
+ file "/opt/hp/hp-health/bin/hpasmd" do
+ action :delete
+ end
+ file "/usr/lib/libhpasmintrfc.so.3.0" do
+ action :delete
+ end
+
+ file "/usr/lib/libhpasmintrfc.so.3" do
+ action :delete
+ end
+
+ file "/usr/lib/libhpasmintrfc.so" do
+ action :delete
+ 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
units.sort.uniq.each do |unit|
if node[:lsb][:release].to_f >= 16.04
service "serial-getty@ttyS#{unit}" do