X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5e863dce0265174a99932d76fa8cee254c4e2b30..5cf4b1858c16e30c5d73ba97f029437c049ddf8c:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index c2d0dd6ee..fe185248b 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -86,12 +86,7 @@ when "TYAN" when "TYAN Computer Corporation" units << "0" when "Supermicro" - case product - when "H8DGU", "X9SCD", "X7DBU", "X7DW3", "X9DR7/E-(J)LN4F", "X9DR3-F", "X9DRW", "SYS-1028U-TN10RT+", "SYS-2028U-TN24R4T+", "SYS-1029P-WTRT", "Super Server" - units << "1" - else - units << "0" - end + units << "1" when "IBM" units << "0" when "VMware, Inc." @@ -197,7 +192,9 @@ tools_packages = [] status_packages = {} if node[:virtualization][:role] != "guest" || - node[:virtualization][:system] != "lxd" + (node[:virtualization][:system] != "lxc" && + node[:virtualization][:system] != "lxd" && + node[:virtualization][:system] != "openvz") node[:kernel][:modules].each_key do |modname| case modname @@ -354,7 +351,7 @@ if !intel_ssds.empty? || !intel_nvmes.empty? cwd Chef::Config[:file_cache_path] user "root" group "root" - not_if { File.exist?("#{Chef::Config[:file_cache_path]}/isdct_#{intel_ssd_tool_version}-1_amd64.deb") } + not_if { ::File.exist?("#{Chef::Config[:file_cache_path]}/isdct_#{intel_ssd_tool_version}-1_amd64.deb") } end dpkg_package "isdct" do