puppet_metadata 4.1.0 → 4.2.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 +4 -4
- data/README.md +19 -0
- data/bin/setfiles +28 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec3e884b9ceee3dd846aaabb2be3e1627c666848ec1acf0bad245c4e0a73697
|
4
|
+
data.tar.gz: 2b899cb612f7aa773034fc4ce3a5445c4872d25e2118e955b75bf03e0e80a3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feb2a288a528b822a0c09ce39cd31f765eaba0f38e045b4864e396c4134359907780d34a1faec7a983cb75bc4d0011ab91bf198d0be0455e2643b03c4478c5e8
|
7
|
+
data.tar.gz: a1006a6cac1cc9bd7ca02991930c03c0a9f0b3604c4bd19756777d3c24b2a56593c66afb0d9502cc3c9be544a0d069b464794968ad85fb35f4905081701b66f1
|
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
|
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.
|
4
|
+
version: 4.2.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-
|
12
|
+
date: 2024-07-05 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
|