X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0e39eff9759a6ae4c50c5ed8eeb9e8bef2d2ad64..699e157e3d708f38064eea9072aa210fe5ccac30:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 7736cd507..751810a3e 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -199,13 +199,17 @@ service "irqbalance" do supports :status => false, :restart => true, :reload => false end -# Link Layer Discovery Protocol Daemon package "lldpd" + service "lldpd" do action [:start, :enable] supports :status => true, :restart => true, :reload => true end +ohai_plugin "lldp" do + template "lldp.rb.erb" +end + tools_packages = [] status_packages = {} @@ -353,6 +357,10 @@ nvmes = if node[:hardware][:pci] [] end +unless nvmes.empty? + package "nvme-cli" +end + intel_nvmes = nvmes.select { |pci| pci[:vendor_name] == "Intel Corporation" } if !intel_ssds.empty? || !intel_nvmes.empty? @@ -547,6 +555,7 @@ end node[:hardware][:modules].each do |module_name| kernel_module module_name do action :install + not_if { kitchen? } end end