supports :status => true, :restart => true
end
- if product.end_with?("Gen8")
+ if product.end_with?("Gen8", "Gen9")
package "hp-ams" do
action :install
notifies :restart, "service[hp-ams]"
end
disks = disks.map do |disk|
- next if disk[:state] == "spun_down"
+ next if disk[:state] == "spun_down" || %w[unconfigured failed].any?(disk[:status])
if disk[:smart_device]
controller = node[:hardware][:disk][:controllers][disk[:controller]]
plugins.each do |plugin|
munin_plugin plugin do
action :delete
+ conf "munin.smart.erb"
end
end