]> git.openstreetmap.org Git - chef.git/commitdiff
Install amd64-microcode on AMD machines running 14.04
authorGrant Slater <git@firefishy.com>
Wed, 9 Jul 2014 15:55:25 +0000 (16:55 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 9 Jul 2014 15:55:25 +0000 (16:55 +0100)
cookbooks/hardware/recipes/default.rb

index 916e380e27bf467469a9e047675f7d768fa551a4..0f3a77353e1c9baecd34d05f1b3eb7a3a969ca89 100644 (file)
@@ -22,6 +22,13 @@ when "GenuineIntel"
   package "intel-microcode"
 end
 
+case node[:cpu][:"0"][:vendor_id]
+when "AuthenticAMD"
+  if node[:lsb][:release].to_f >= 14.04
+    package "amd64-microcode"
+  end
+end
+
 if node[:dmi] and node[:dmi][:system]
   case node[:dmi][:system][:manufacturer]
   when "empty"