From 6baf59e073595df54fa337b1e8e57ec5064db268 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 1 Oct 2024 22:55:28 +0200 Subject: [PATCH] Debian: Support LTS releases This is pending our discussion in https://github.com/voxpupuli/voxpupuli.github.io/pull/386 --- lib/puppet_metadata/operatingsystem.rb | 7 ++++--- spec/operatingsystem_spec.rb | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/puppet_metadata/operatingsystem.rb b/lib/puppet_metadata/operatingsystem.rb index 80e7d30..0e701ce 100644 --- a/lib/puppet_metadata/operatingsystem.rb +++ b/lib/puppet_metadata/operatingsystem.rb @@ -30,9 +30,10 @@ class OperatingSystem }, # https://wiki.debian.org/DebianReleases 'Debian' => { - # TODO: EOL is standard support, not the extended life cycle - '12' => nil, # '~2026', - '11' => '2024-08-14', + # EOL is extended life cycle, not standard support + # https://github.com/voxpupuli/voxpupuli.github.io/pull/386 + '12' => '2028-06-30', + '11' => '2026-08-31', '10' => '2022-09-10', '9' => '2020-07-06', '8' => '2018-06-17', diff --git a/spec/operatingsystem_spec.rb b/spec/operatingsystem_spec.rb index 0fa40db..309a3a4 100644 --- a/spec/operatingsystem_spec.rb +++ b/spec/operatingsystem_spec.rb @@ -45,8 +45,8 @@ context 'with Debian' do let(:os) { 'Debian' } - it 'returns 12' do - expect(described_class.supported_releases(os)).to contain_exactly('12') + it 'returns 11 and 12' do + expect(described_class.supported_releases(os)).to contain_exactly('11', '12') end it 'the last entry matches latest_release' do