puppet_metadata 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c64a608ea05e55de8fd0497587009102dbaa9c422a5f91e0b4942f0e5ea6fe9
4
- data.tar.gz: 2775892df0cdbc8dd88ee5f95d2ac2cb31ec6d992341f45a50fed8214ae661b6
3
+ metadata.gz: 524caad31fa4d4d85cf6df58f43ec003b8267abb0bef9974e336753c88160f29
4
+ data.tar.gz: 1bc931eeee6247d0308b1fad5fc4fd01dbe6ab3615129c24a0f7e9caa0b58493
5
5
  SHA512:
6
- metadata.gz: 425dd0d57a1742d73c2ffdabfd88749948c4534f3d2267decff11e4dc5fda1acf66b8ffe8a63bd4f9a5286592e8b396ccb510f1398c9ff2cbd5f34a5381c41f4
7
- data.tar.gz: 7aa0d2a21b5384d736cadc0ed9b6ae5cafeff7c5c7a6bacba5b13b075d9f2b8a0ee6d3e579b5800bae6f32d4331c9921adfca9b5f8d746376cb073e06db27865
6
+ metadata.gz: 9973f6d3d9611f28ed44dda6e23d2b21b214f956c262efae86b2f3e52c0f95882a0c2de07bea7c9fa3d17a18ae8586980023eb10e3ccf6c204eaf8ce1674d656
7
+ data.tar.gz: 33553b19365fcb4c8ab8647af3b8d722bc77be30acd36dbb02ab1bb666758e9e4a20b27325d4609971b45d5d956fc8e5c19135da5338e7f58596fc11f186bf2a
@@ -9,7 +9,7 @@ module PuppetMetadata
9
9
  'Scientific' => 'RedHat',
10
10
  }.freeze
11
11
 
12
- BUILDS = {
12
+ PUPPET_BUILDS = {
13
13
  # RPM-based
14
14
  'RedHat' => {
15
15
  '7' => 7..8,
@@ -37,6 +37,20 @@ module PuppetMetadata
37
37
  },
38
38
  }.freeze
39
39
 
40
+ OPENVOX_BUILDS = PUPPET_BUILDS.merge({
41
+ 'RedHat' => {
42
+ '7' => 7..8,
43
+ '8' => 7..8,
44
+ '9' => 7..8,
45
+ '10' => 7..8,
46
+ },
47
+ 'Debian' => {
48
+ '11' => 7..8,
49
+ '12' => 7..8,
50
+ '13' => [8],
51
+ },
52
+ }).freeze
53
+
40
54
  PUPPET_RUBY_VERSIONS = {
41
55
  7 => '2.7',
42
56
  8 => '3.2',
@@ -49,8 +63,9 @@ module PuppetMetadata
49
63
  COMPATIBLE.fetch(os, os)
50
64
  end
51
65
 
52
- def has_aio_build?(os, release, puppet_version)
53
- BUILDS.dig(find_base_os(os), release)&.include?(puppet_version)
66
+ def has_aio_build?(os, release, puppet_version, requirement)
67
+ builds = (requirement == 'openvox') ? OPENVOX_BUILDS : PUPPET_BUILDS
68
+ builds.dig(find_base_os(os), release)&.include?(puppet_version)
54
69
  end
55
70
  end
56
71
  end
@@ -83,9 +83,8 @@ module PuppetMetadata
83
83
  end
84
84
 
85
85
  majors.each do |puppet_version|
86
- if AIO.has_aio_build?(os, release, puppet_version[:value])
86
+ if AIO.has_aio_build?(os, release, puppet_version[:value], puppet_version[:requirement])
87
87
  yield [os, release, puppet_version]
88
- # TODO: also match requirement here
89
88
  elsif PuppetMetadata::OperatingSystem.os_release_puppet_version(os, release) == puppet_version[:value]
90
89
  yield [os, release, distro_puppet_version.merge(value: puppet_version[:value])]
91
90
  end
@@ -18,6 +18,31 @@ module PuppetMetadata
18
18
  '9' => '2032-05-31',
19
19
  '8' => '2029-05-31',
20
20
  },
21
+ 'Amazon' => {
22
+ # Amazon Linux AMI
23
+ # https://aws.amazon.com/amazon-linux-ami/
24
+ '2018.03' => '2023-12-31',
25
+ '2017.09' => '2023-12-31',
26
+ '2017.03' => '2023-12-31',
27
+ '2016.09' => '2023-12-31',
28
+ '2016.03' => '2023-12-31',
29
+ '2015.09' => '2023-12-31',
30
+ '2015.03' => '2023-12-31',
31
+ '2014.09' => '2023-12-31',
32
+ '2014.03' => '2023-12-31',
33
+ '2013.09' => '2023-12-31',
34
+ '2013.03' => '2023-12-31',
35
+ '2012.09' => '2023-12-31',
36
+ '2012.03' => '2023-12-31',
37
+ '2011.09' => '2023-12-31',
38
+ '2010.11' => '2023-12-31',
39
+ # Amazon Linux 2
40
+ # https://aws.amazon.com/amazon-linux-2/faqs/
41
+ '2.0' => '2026-06-30',
42
+ # Amazon Linux 2023
43
+ # https://docs.aws.amazon.com/linux/al2023/ug/release-cadence.html
44
+ '2023' => '2027-06-30',
45
+ },
21
46
  # https://endoflife.software/operating-systems/linux/centos
22
47
  # https://endoflife.date/centos-stream
23
48
  'CentOS' => {
@@ -33,6 +58,7 @@ module PuppetMetadata
33
58
  'Debian' => {
34
59
  # EOL is extended life cycle, not standard support
35
60
  # https://github.com/voxpupuli/voxpupuli.github.io/pull/386
61
+ '13' => '2030-08-09',
36
62
  '12' => '2028-06-30',
37
63
  '11' => '2026-08-31',
38
64
  '10' => '2022-09-10',
@@ -56,8 +82,8 @@ module PuppetMetadata
56
82
  # https://docs.fedoraproject.org/en-US/releases/eol/
57
83
  'Fedora' => {
58
84
  '41' => nil,
59
- '40' => nil,
60
- '39' => nil,
85
+ '40' => '2025-05-13',
86
+ '39' => '2024-11-26',
61
87
  '38' => '2024-05-21',
62
88
  '37' => '2023-12-05',
63
89
  '36' => '2023-05-16',
@@ -125,6 +151,23 @@ module PuppetMetadata
125
151
  '9' => '2032-05-31',
126
152
  '8' => '2029-05-31',
127
153
  },
154
+ # https://scientificlinux.org/category/uncategorized/scientific-linux-end-of-life/
155
+ 'Scientific' => {
156
+ '8' => '2024-06-30', # This is not really a Scientific release, but I have seen it in module metadata ..
157
+ '7' => '2024-06-30',
158
+ '6' => '2020-11-30',
159
+ '5' => '2017-03-31',
160
+ '4' => '2012-02-29',
161
+ '3' => '2010-10-30',
162
+ },
163
+ # https://www.suse.com/lifecycle/#product-suse-linux-enterprise-server
164
+ # General support end dates, not LTSS
165
+ 'SLES' => {
166
+ '15' => '2031-07-31',
167
+ '12' => '2024-10-31',
168
+ '11' => '2019-03-31',
169
+ '10' => '2013-07-31',
170
+ },
128
171
  # https://endoflife.software/operating-systems/linux/ubuntu
129
172
  'Ubuntu' => {
130
173
  '24.04' => '2029-04-30',
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  - Ewoud Kohl van Wijngaarden
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2025-03-18 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: metadata-json-lint
@@ -113,14 +112,14 @@ dependencies:
113
112
  requirements:
114
113
  - - "~>"
115
114
  - !ruby/object:Gem::Version
116
- version: 3.0.0
115
+ version: 3.1.0
117
116
  type: :development
118
117
  prerelease: false
119
118
  version_requirements: !ruby/object:Gem::Requirement
120
119
  requirements:
121
120
  - - "~>"
122
121
  - !ruby/object:Gem::Version
123
- version: 3.0.0
122
+ version: 3.1.0
124
123
  - !ruby/object:Gem::Dependency
125
124
  name: yard
126
125
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +157,6 @@ homepage: https://github.com/voxpupuli/puppet_metadata
158
157
  licenses:
159
158
  - Apache-2.0
160
159
  metadata: {}
161
- post_install_message:
162
160
  rdoc_options:
163
161
  - "--main"
164
162
  - README.md
@@ -178,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
176
  - !ruby/object:Gem::Version
179
177
  version: '0'
180
178
  requirements: []
181
- rubygems_version: 3.5.22
182
- signing_key:
179
+ rubygems_version: 3.6.9
183
180
  specification_version: 4
184
181
  summary: Data structures for the Puppet Metadata
185
182
  test_files: []