]> git.openstreetmap.org Git - chef.git/commitdiff
Serial port is on S0 for Gen10 machines
authorTom Hughes <tom@compton.nu>
Mon, 26 Sep 2022 07:31:34 +0000 (08:31 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 26 Sep 2022 07:31:34 +0000 (08:31 +0100)
cookbooks/hardware/recipes/default.rb

index 95646aa4efd44165a49c2598851e2a46658d23b7..0b25e7bf49b0713ba5fa91fbec35d7c82ad45ebc 100644 (file)
@@ -97,7 +97,11 @@ when "HP", "HPE"
     end
   end
 
-  units << "1"
+  units << if product.end_with?("Gen10")
+             "0"
+           else
+             "1"
+           end
 when "TYAN"
   units << "0"
 when "TYAN Computer Corporation"