]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Serial port is on S0 for Gen10 machines
[chef.git] / cookbooks / hardware / recipes / default.rb
index b6ac622911554e25580e3c84cd87a69c69f77213..0b25e7bf49b0713ba5fa91fbec35d7c82ad45ebc 100644 (file)
@@ -55,7 +55,7 @@ if node[:roles].include?("bytemark") || node[:roles].include?("exonetric") || no
 end
 
 case manufacturer
-when "HP"
+when "HP", "HPE"
   include_recipe "apt::management-component-pack"
 
   package "hponcfg"
@@ -97,7 +97,11 @@ when "HP"
     end
   end
 
-  units << "1"
+  units << if product.end_with?("Gen10")
+             "0"
+           else
+             "1"
+           end
 when "TYAN"
   units << "0"
 when "TYAN Computer Corporation"