puppet_metadata 4.1.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c4f054d14dd9e72c4648900bded2d92d8c59f79215850928d381fa89789d42a
4
- data.tar.gz: d3835c16527df9ddc168e7807df55210ed5d3a890eb4acc9ea8d136653cc11e0
3
+ metadata.gz: 453e897f24bf38c9097c2f0790d18634f8891780c6b717c9bf38b6bd28763acc
4
+ data.tar.gz: 10e327fc9467412f3001bd980da91c299af51ec3e5f1e8370a67485025953aa2
5
5
  SHA512:
6
- metadata.gz: b1c977b8b96a326d2527f6240fb460007dfd9716c85cb41d7118a6643fa894bc6d75eb61da83d7e1e417950ee73dd66629eb5fa78f090dab056464961057778d
7
- data.tar.gz: e61500c742d82ba2fea435ceaafd53dc0ac99f50b87570fe7cddd29b96c0ff2efb9ce7a1ccb1b6bb61cd24d85f1ab5b82f16c1487fe564e63116acadc0ef2c1c
6
+ metadata.gz: 2811bb57031eec34cc04625856b413067964c440616c0c868774e2d4d61a7c2c3efb048356ba2076f1252e51b8b59e779b655b440faa7b9dc3a92de83a712aa5
7
+ data.tar.gz: e0e7e0f7c9c902c489dd63eeaa67799892286968fab95f19998d8dd73eb05dd9b034bc9f2981259ebaadafc1aca32c8c368e50b23922cf414da04c2ea34b500e
data/README.md CHANGED
@@ -212,6 +212,25 @@ The metadata object has several different methods that we can call
212
212
  [7] pry(main)>
213
213
  ```
214
214
 
215
+ ## List supported setfiles
216
+
217
+ When running beaker on the CLI, you can specify a specific setfile. `puppet_metadata` provides `bin/setfiles` to list all setfiles:
218
+
219
+ ```
220
+ $ bundle exec setfiles
221
+ Skipping EOL operating system Debian 10
222
+ Skipping EOL operating system Ubuntu 18.04
223
+ BEAKER_SETFILE="centos9-64{hostname=centos9-64-puppet8.example.com}"
224
+ BEAKER_SETFILE="centos9-64{hostname=centos9-64-puppet7.example.com}"
225
+ BEAKER_SETFILE="debian11-64{hostname=debian11-64-puppet8.example.com}"
226
+ BEAKER_SETFILE="debian11-64{hostname=debian11-64-puppet7.example.com}"
227
+ BEAKER_SETFILE="ubuntu2004-64{hostname=ubuntu2004-64-puppet8.example.com}"
228
+ BEAKER_SETFILE="ubuntu2004-64{hostname=ubuntu2004-64-puppet7.example.com}"
229
+ ```
230
+
231
+ As an argument you can provide a path to a metadata.json. If none provided, it assumes that there's a metadata.json in the same directory where you run the command.
232
+ To make copy and paste easier, each setfile string is prefixed so it can directly be used as environment variable.
233
+
215
234
  ## Transfer Notice
216
235
 
217
236
  This plugin was originally authored by [Ewoud Kohl van Wijngaarden](https://github.com/ekohl).
data/bin/setfiles ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'json'
6
+ require 'puppet_metadata'
7
+
8
+ filename = ARGV[0]
9
+ filename = 'metadata.json' if filename.nil? || filename.empty?
10
+
11
+ begin
12
+ metadata = PuppetMetadata.read(filename)
13
+ rescue StandardError => e
14
+ warn "Failed to read #{filename}: #{e}"
15
+ exit 2
16
+ end
17
+
18
+ options = {
19
+ beaker_pidfile_workaround: false,
20
+ domain: 'example.com',
21
+ minimum_major_puppet_version: nil,
22
+ beaker_fact: nil,
23
+ beaker_hosts: nil,
24
+ }
25
+
26
+ metadata.github_actions(options).outputs[:puppet_beaker_test_matrix].each do |os|
27
+ puts "BEAKER_SETFILE=\"#{os[:env]['BEAKER_SETFILE']}\""
28
+ end
@@ -50,6 +50,7 @@ module PuppetMetadata
50
50
  '18.04' => 5..8,
51
51
  '20.04' => 6..8,
52
52
  '22.04' => 6..8,
53
+ '24.04' => 7..8,
53
54
  },
54
55
  }.freeze
55
56
 
@@ -125,6 +125,7 @@ module PuppetMetadata
125
125
  },
126
126
  # https://endoflife.software/operating-systems/linux/ubuntu
127
127
  'Ubuntu' => {
128
+ '24.04' => '2029-04-30',
128
129
  '22.04' => '2027-04-15',
129
130
  '21.10' => '2022-07-15',
130
131
  '20.10' => '2021-07-15',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-28 00:00:00.000000000 Z
12
+ date: 2024-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: metadata-json-lint
@@ -134,12 +134,14 @@ email:
134
134
  - voxpupuli@groups.io
135
135
  executables:
136
136
  - metadata2gha
137
+ - setfiles
137
138
  extensions: []
138
139
  extra_rdoc_files:
139
140
  - README.md
140
141
  files:
141
142
  - README.md
142
143
  - bin/metadata2gha
144
+ - bin/setfiles
143
145
  - lib/puppet_metadata.rb
144
146
  - lib/puppet_metadata/aio.rb
145
147
  - lib/puppet_metadata/beaker.rb
@@ -170,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
172
  - !ruby/object:Gem::Version
171
173
  version: '0'
172
174
  requirements: []
173
- rubygems_version: 3.5.11
175
+ rubygems_version: 3.5.16
174
176
  signing_key:
175
177
  specification_version: 4
176
178
  summary: Data structures for the Puppet Metadata