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 +4 -4
- data/README.md +19 -0
- data/bin/setfiles +28 -0
- data/lib/puppet_metadata/aio.rb +1 -0
- data/lib/puppet_metadata/operatingsystem.rb +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 453e897f24bf38c9097c2f0790d18634f8891780c6b717c9bf38b6bd28763acc
|
4
|
+
data.tar.gz: 10e327fc9467412f3001bd980da91c299af51ec3e5f1e8370a67485025953aa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/puppet_metadata/aio.rb
CHANGED
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.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-
|
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.
|
175
|
+
rubygems_version: 3.5.16
|
174
176
|
signing_key:
|
175
177
|
specification_version: 4
|
176
178
|
summary: Data structures for the Puppet Metadata
|