Skip to content

Commit ee5fc8a

Browse files
yee-unitfacebook-github-bot
authored andcommitted
Add Server 2025 to chef node methods
Differential Revision: D70131122 fbshipit-source-id: e07966f84a6dc15aac03cc36fd71c3fe60414356
1 parent 02022b7 commit ee5fc8a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cookbooks/fb_helpers/libraries/node_methods.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,10 @@ def windows2022?
479479
windows_server? && self['platform_version'] == '10.0.20348'
480480
end
481481

482+
def windows2025?
483+
windows_server? && self['platform_version'] == '10.0.26100'
484+
end
485+
482486
# from https://en.wikipedia.org/wiki/Windows_10_version_history
483487
def windows1903?
484488
windows? && self['platform_version'] == '10.0.18362'
@@ -524,6 +528,10 @@ def windows2022_or_newer?
524528
windows_server? && self._self_version >= self._canonical_version('10.0.20348')
525529
end
526530

531+
def windows2025_or_newer?
532+
windows_server? && self._self_version >= self._canonical_version('10.0.26100')
533+
end
534+
527535
def windows2012_or_older?
528536
windows_server? && self._self_version < self._canonical_version('6.3')
529537
end
@@ -544,6 +552,10 @@ def windows2022_or_older?
544552
windows_server? && self._self_version <= self._canonical_version('10.0.20348')
545553
end
546554

555+
def windows2025_or_older?
556+
windows_server? && self._self_version <= self._canonical_version('10.0.26100')
557+
end
558+
547559
def aristaeos?
548560
self['platform'] == 'arista_eos'
549561
end

0 commit comments

Comments
 (0)