puppet_metadata 1.10.0 → 2.0.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 +0 -23
- data/lib/puppet_metadata/beaker.rb +1 -1
- data/lib/puppet_metadata/github_actions.rb +0 -13
- data/lib/puppet_metadata/metadata.rb +0 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1763188bcd3297af8beb78aca2fc95986371390ea4e0d95178558c4744257a24
|
4
|
+
data.tar.gz: 9f00b77fef19f20ff4a0efc020c39e651aa4a35c71778ec6aba8d0538a10110c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 205f35c88e3d3106f3403505c90e5e6f14271c2be756662bc347fc79aee1fc03ef8e1b5b32d5b3374b95df0a628ecba8cc009f8bdb8ab5260252d45173aed4ba
|
7
|
+
data.tar.gz: e168ab33e1b0420031a08b833f46b85e22e60279b1c7228ad7188824021a9e0c12546995a406bfaa0016dcb3db3a07ab12635f9a615187f40746b648223da631
|
data/README.md
CHANGED
@@ -16,33 +16,10 @@ To get outputs [usable in Github Actions](https://docs.github.com/en/free-pro-te
|
|
16
16
|
|
17
17
|
```console
|
18
18
|
$ metadata2gha-beaker
|
19
|
-
beaker_setfiles=[{"name":"CentOS 7","value":"centos7-64"},{"name":"CentOS 8","value":"centos8-64"},{"name":"Debian 10","value":"debian10-64"},{"name":"Ubuntu 18.04","value":"ubuntu1804-64"}]
|
20
19
|
puppet_major_versions=[{"name":"Puppet 6","value":6,"collection":"puppet6"},{"name":"Puppet 5","value":5,"collection":"puppet5"}]
|
21
20
|
puppet_unit_test_matrix=[{"puppet":6,"ruby":"2.5"},{"puppet":5,"ruby":"2.4"}]
|
22
21
|
```
|
23
22
|
|
24
|
-
Beaker setfiles formatted for readability:
|
25
|
-
```json
|
26
|
-
[
|
27
|
-
{
|
28
|
-
"name": "CentOS 7",
|
29
|
-
"value": "centos7-64"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"name": "CentOS 8",
|
33
|
-
"value": "centos8-64"
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"name": "Debian 10",
|
37
|
-
"value": "debian10-64"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"name": "Ubuntu 18.04",
|
41
|
-
"value": "ubuntu1804-64"
|
42
|
-
}
|
43
|
-
]
|
44
|
-
```
|
45
|
-
|
46
23
|
Puppet major versions formatted for readability:
|
47
24
|
```json
|
48
25
|
[
|
@@ -71,7 +71,7 @@ module PuppetMetadata
|
|
71
71
|
# Return whether a Beaker setfile can be generated for the given OS
|
72
72
|
# @param [String] os The operating system
|
73
73
|
def os_supported?(os)
|
74
|
-
['Archlinux', 'CentOS', 'Fedora', 'Debian', 'Ubuntu'].include?(os)
|
74
|
+
['Archlinux', 'CentOS', 'Fedora', 'Debian', 'Ubuntu', 'Rocky', 'AlmaLinux'].include?(os)
|
75
75
|
end
|
76
76
|
|
77
77
|
private
|
@@ -13,7 +13,6 @@ module PuppetMetadata
|
|
13
13
|
# @return [Hash[Symbol, Any]] The outputs for Github Actions
|
14
14
|
def outputs
|
15
15
|
{
|
16
|
-
beaker_setfiles: beaker_setfiles,
|
17
16
|
puppet_major_versions: puppet_major_versions,
|
18
17
|
puppet_unit_test_matrix: puppet_unit_test_matrix,
|
19
18
|
github_action_test_matrix: github_action_test_matrix,
|
@@ -22,18 +21,6 @@ module PuppetMetadata
|
|
22
21
|
|
23
22
|
private
|
24
23
|
|
25
|
-
|
26
|
-
def beaker_setfiles
|
27
|
-
setfiles = []
|
28
|
-
metadata.beaker_setfiles(use_fqdn: options[:beaker_use_fqdn], pidfile_workaround: options[:beaker_pidfile_workaround], domain: options[:domain]) do |setfile, name|
|
29
|
-
setfiles << {
|
30
|
-
name: name,
|
31
|
-
value: setfile,
|
32
|
-
}
|
33
|
-
end
|
34
|
-
setfiles
|
35
|
-
end
|
36
|
-
|
37
24
|
def puppet_major_versions
|
38
25
|
metadata.puppet_major_versions.sort.reverse.map do |version|
|
39
26
|
next if puppet_version_below_minimum?(version)
|
@@ -188,25 +188,6 @@ module PuppetMetadata
|
|
188
188
|
PuppetMetadata::GithubActions.new(self, options)
|
189
189
|
end
|
190
190
|
|
191
|
-
# @param [Boolean] use_fqdn
|
192
|
-
# Whether to set the hostname to a fully qualified domain name (deprecated, use domain)
|
193
|
-
# @param [Boolean] pidfile_workaround
|
194
|
-
# Whether to apply the Docker pidfile workaround
|
195
|
-
# @param [String] domain
|
196
|
-
# Enforce a domain to be appended to the hostname, making it an FQDN
|
197
|
-
# @yieldparam [String] setfile
|
198
|
-
# The supported setfile configurations
|
199
|
-
# @see PuppetMetadata::Beaker#os_release_to_setfile
|
200
|
-
def beaker_setfiles(use_fqdn: false, pidfile_workaround: false, domain: nil)
|
201
|
-
operatingsystems.each do |os, releases|
|
202
|
-
next unless PuppetMetadata::Beaker.os_supported?(os)
|
203
|
-
releases&.each do |release|
|
204
|
-
setfile = PuppetMetadata::Beaker.os_release_to_setfile(os, release, use_fqdn: use_fqdn, pidfile_workaround: pidfile_workaround, domain: domain)
|
205
|
-
yield setfile if setfile
|
206
|
-
end
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
191
|
private
|
211
192
|
|
212
193
|
def build_version_requirement_hash(array)
|
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
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
@@ -132,7 +132,7 @@ files:
|
|
132
132
|
- lib/puppet_metadata/github_actions.rb
|
133
133
|
- lib/puppet_metadata/metadata.rb
|
134
134
|
- lib/puppet_metadata/operatingsystem.rb
|
135
|
-
homepage:
|
135
|
+
homepage: https://github.com/voxpupuli/puppet_metadata
|
136
136
|
licenses:
|
137
137
|
- Apache-2.0
|
138
138
|
metadata: {}
|