diff options
author | Tim Smith <tsmith@chef.io> | 2021-09-28 14:45:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 14:45:26 -0700 |
commit | cf2d18dbda333a3666f7ef77a6963a5a3da70280 (patch) | |
tree | ff89b809214e2d621a09d51cf94b07179d216ee5 | |
parent | 9da43a81b207e2a798aab5ed0fd083779e4c480c (diff) | |
parent | 27d52f50ef54e55a0caa4e559f4ba8a17596e02d (diff) | |
download | chef-cf2d18dbda333a3666f7ef77a6963a5a3da70280.tar.gz |
Merge pull request #12096 from knightorc/Windows2022-win32-version-chef16
CHEF16 - Win2k22 - version / build information ADD
-rw-r--r-- | lib/chef/win32/version.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/win32/version.rb b/lib/chef/win32/version.rb index c83e52e4fc..fe7a80926b 100644 --- a/lib/chef/win32/version.rb +++ b/lib/chef/win32/version.rb @@ -49,6 +49,7 @@ class Chef private_class_method :method_name_from_marketing_name WIN_VERSIONS = { + "Windows Server 2022" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type != VER_NT_WORKSTATION && build_number >= 20348 } }, "Windows Server 2019" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type != VER_NT_WORKSTATION && build_number >= 17763 } }, "Windows 10" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type == VER_NT_WORKSTATION } }, "Windows Server 2016" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type != VER_NT_WORKSTATION && build_number <= 14393 } }, |