beaker-hostgenerator 1.6.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +16 -6
- data/.github/workflows/test.yml +15 -7
- data/CHANGELOG.md +40 -0
- data/Gemfile +5 -0
- data/README.md +16 -0
- data/beaker-hostgenerator.gemspec +0 -4
- data/lib/beaker-hostgenerator/data.rb +50 -0
- data/lib/beaker-hostgenerator/hypervisor/abs.rb +5 -5
- data/lib/beaker-hostgenerator/hypervisor/vmpooler.rb +5 -5
- data/lib/beaker-hostgenerator/version.rb +1 -1
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b029cb7fb82dfd9c0395e36986057098114599b5c2c89bf3e0ae6dc004b91daf
|
4
|
+
data.tar.gz: 0bef6910676fe6773af2c88ec79a1d6d8061c1a26551ef491b76e13f891e348a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de374a8805989b1cc6cd8be3d0fa0460cb09c66cc20beafdade548a2d8d6426f4f137192da116aab4569b19496fb0df183ce9c5aaebbebc687f4576b4b90e06
|
7
|
+
data.tar.gz: 7e5f8ac6690a383358d27d701dceda088fe259d281d8b6e06e8741d44e6e14f53e095a91830f6421557081df8fb72b8e2666a50e6b782015c3a84f2407d33283
|
@@ -1,22 +1,32 @@
|
|
1
1
|
name: Release
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
5
|
-
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
6
7
|
|
7
8
|
jobs:
|
8
9
|
release:
|
9
10
|
runs-on: ubuntu-latest
|
10
|
-
if: github.
|
11
|
+
if: github.repository_owner == 'voxpupuli'
|
11
12
|
steps:
|
12
13
|
- uses: actions/checkout@v2
|
13
|
-
- name: Install Ruby
|
14
|
+
- name: Install Ruby 3.0
|
14
15
|
uses: ruby/setup-ruby@v1
|
15
16
|
with:
|
16
|
-
ruby-version: '
|
17
|
+
ruby-version: '3.0'
|
18
|
+
env:
|
19
|
+
BUNDLE_WITHOUT: release
|
17
20
|
- name: Build gem
|
18
21
|
run: gem build *.gemspec
|
19
|
-
- name: Publish gem
|
22
|
+
- name: Publish gem to rubygems.org
|
20
23
|
run: gem push *.gem
|
21
24
|
env:
|
22
25
|
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
26
|
+
- name: Setup GitHub packages access
|
27
|
+
run: |
|
28
|
+
mkdir -p ~/.gem
|
29
|
+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
|
30
|
+
chmod 0600 ~/.gem/credentials
|
31
|
+
- name: Publish gem to GitHub packages
|
32
|
+
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
|
data/.github/workflows/test.yml
CHANGED
@@ -4,18 +4,24 @@ on:
|
|
4
4
|
- pull_request
|
5
5
|
- push
|
6
6
|
|
7
|
+
env:
|
8
|
+
BUNDLE_WITHOUT: release
|
9
|
+
|
7
10
|
jobs:
|
8
11
|
test:
|
9
12
|
runs-on: ubuntu-latest
|
10
13
|
strategy:
|
11
14
|
fail-fast: false
|
12
15
|
matrix:
|
13
|
-
|
14
|
-
- "2.4"
|
15
|
-
- "2.5"
|
16
|
-
- "2.6"
|
17
|
-
- "2.7"
|
18
|
-
|
16
|
+
include:
|
17
|
+
- ruby: "2.4"
|
18
|
+
- ruby: "2.5"
|
19
|
+
- ruby: "2.6"
|
20
|
+
- ruby: "2.7"
|
21
|
+
- ruby: "3.0"
|
22
|
+
coverage: "yes"
|
23
|
+
env:
|
24
|
+
COVERAGE: ${{ matrix.coverage }}
|
19
25
|
steps:
|
20
26
|
- uses: actions/checkout@v2
|
21
27
|
- name: Install Ruby ${{ matrix.ruby }}
|
@@ -24,4 +30,6 @@ jobs:
|
|
24
30
|
ruby-version: ${{ matrix.ruby }}
|
25
31
|
bundler-cache: true
|
26
32
|
- name: Run tests
|
27
|
-
run: bundle exec rake
|
33
|
+
run: bundle exec rake
|
34
|
+
- name: Build gem
|
35
|
+
run: gem build *.gemspec
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,46 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [1.9.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.9.0) (2021-12-07)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.8.0...1.9.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- \(IMAGES-1323\) Adds RedHat 9 support [\#235](https://github.com/voxpupuli/beaker-hostgenerator/pull/235) ([mhashizume](https://github.com/mhashizume))
|
12
|
+
|
13
|
+
## [1.8.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.8.0) (2021-10-25)
|
14
|
+
|
15
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.7.1...1.8.0)
|
16
|
+
|
17
|
+
**Implemented enhancements:**
|
18
|
+
|
19
|
+
- Implement coverage reports [\#233](https://github.com/voxpupuli/beaker-hostgenerator/pull/233) ([bastelfreak](https://github.com/bastelfreak))
|
20
|
+
- Align github actions/publish gem to github as well [\#232](https://github.com/voxpupuli/beaker-hostgenerator/pull/232) ([bastelfreak](https://github.com/bastelfreak))
|
21
|
+
- Add Windows Server 2022 64-bit support and update default vmpooler API [\#231](https://github.com/voxpupuli/beaker-hostgenerator/pull/231) ([GabrielNagy](https://github.com/GabrielNagy))
|
22
|
+
|
23
|
+
**Closed issues:**
|
24
|
+
|
25
|
+
- vmpooler API endpoint has changed [\#230](https://github.com/voxpupuli/beaker-hostgenerator/issues/230)
|
26
|
+
|
27
|
+
## [1.7.1](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.7.1) (2021-09-22)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.7.0...1.7.1)
|
30
|
+
|
31
|
+
**Fixed bugs:**
|
32
|
+
|
33
|
+
- Add ABS support for Rocky and Alma 8 [\#228](https://github.com/voxpupuli/beaker-hostgenerator/pull/228) ([GabrielNagy](https://github.com/GabrielNagy))
|
34
|
+
|
35
|
+
## [1.7.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.7.0) (2021-09-22)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.6.1...1.7.0)
|
38
|
+
|
39
|
+
**Implemented enhancements:**
|
40
|
+
|
41
|
+
- \(IMAGES-1302\) Add Alma and Rocky 8 support [\#226](https://github.com/voxpupuli/beaker-hostgenerator/pull/226) ([GabrielNagy](https://github.com/GabrielNagy))
|
42
|
+
- Add RedHat 8 FIPS platform definition [\#224](https://github.com/voxpupuli/beaker-hostgenerator/pull/224) ([GabrielNagy](https://github.com/GabrielNagy))
|
43
|
+
- Remove stringify-hash as a dependency [\#219](https://github.com/voxpupuli/beaker-hostgenerator/pull/219) ([ekohl](https://github.com/ekohl))
|
44
|
+
|
5
45
|
## [1.6.1](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.6.1) (2021-08-26)
|
6
46
|
|
7
47
|
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.6.0...1.6.1)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Beaker Host Generator
|
2
2
|
|
3
|
+
[![License](https://img.shields.io/github/license/voxpupuli/beaker-hostgenerator.svg)](https://github.com/voxpupuli/beaker-hostgenerator/blob/master/LICENSE)
|
4
|
+
[![Test](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/test.yml)
|
5
|
+
[![codecov](https://codecov.io/gh/voxpupuli/beaker-hostgenerator/branch/master/graph/badge.svg)](https://codecov.io/gh/voxpupuli/beaker-hostgenerator)
|
6
|
+
[![Release](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/release.yml)
|
7
|
+
[![RubyGem Version](https://img.shields.io/gem/v/beaker-hostgenerator.svg)](https://rubygems.org/gems/beaker-hostgenerator)
|
8
|
+
[![RubyGem Downloads](https://img.shields.io/gem/dt/beaker-hostgenerator.svg)](https://rubygems.org/gems/beaker-hostgenerator)
|
9
|
+
[![Donated by Puppet Inc](https://img.shields.io/badge/donated%20by-Puppet%20Inc-fb7047.svg)](#transfer-notice)
|
10
|
+
|
3
11
|
`beaker-hostgenerator` is a command line utility designed to generate beaker
|
4
12
|
host config files using a compact command line SUT specification.
|
5
13
|
|
@@ -453,6 +461,14 @@ contribute.
|
|
453
461
|
If you have questions or comments, please contact the Beaker team at the
|
454
462
|
`#puppet-dev` IRC channel on chat.freenode.org
|
455
463
|
|
464
|
+
## Transfer Notice
|
465
|
+
|
466
|
+
This plugin was originally authored by [Puppet Inc](http://puppet.com).
|
467
|
+
The maintainer preferred that Vox Pupuli take ownership of the module for future improvement and maintenance.
|
468
|
+
Existing pull requests and issues were transferred over, please fork and continue to contribute at https://github.com/voxpupuli/beaker-hostgenerator
|
469
|
+
|
470
|
+
Previously: https://github.com/puppetlabs/beaker-hostgenerator
|
471
|
+
|
456
472
|
## Make a new release
|
457
473
|
|
458
474
|
To make a new release:
|
@@ -25,7 +25,6 @@ eos
|
|
25
25
|
s.add_development_dependency 'rspec-its'
|
26
26
|
s.add_development_dependency 'fakefs', '>= 0.6', '< 2.0'
|
27
27
|
s.add_development_dependency 'rake', '~> 13.0'
|
28
|
-
s.add_development_dependency 'simplecov'
|
29
28
|
s.add_development_dependency 'pry', '~> 0.10'
|
30
29
|
|
31
30
|
# Documentation dependencies
|
@@ -34,7 +33,4 @@ eos
|
|
34
33
|
|
35
34
|
# Run time dependencies
|
36
35
|
s.add_runtime_dependency 'deep_merge', '~> 1.0'
|
37
|
-
s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
|
38
|
-
|
39
36
|
end
|
40
|
-
|
@@ -186,6 +186,17 @@ module BeakerHostGenerator
|
|
186
186
|
'template' => 'aix-7.2-power'
|
187
187
|
}
|
188
188
|
},
|
189
|
+
'almalinux8-64' => {
|
190
|
+
:general => {
|
191
|
+
'platform' => 'el-8-x86_64',
|
192
|
+
},
|
193
|
+
:docker => {
|
194
|
+
'docker_image_commands' => [
|
195
|
+
'cp /bin/true /sbin/agetty',
|
196
|
+
'yum install -y crontabs initscripts iproute openssl wget which glibc-langpack-en'
|
197
|
+
]
|
198
|
+
}
|
199
|
+
},
|
189
200
|
'amazon6-64' => {
|
190
201
|
:general => {
|
191
202
|
'platform' => 'el-6-x86_64',
|
@@ -992,6 +1003,15 @@ module BeakerHostGenerator
|
|
992
1003
|
'template' => 'redhat-8-x86_64'
|
993
1004
|
}
|
994
1005
|
},
|
1006
|
+
'redhatfips8-64' => {
|
1007
|
+
:general => {
|
1008
|
+
'platform' => 'el-8-x86_64',
|
1009
|
+
'packaging_platform' => 'redhatfips-8-x86_64'
|
1010
|
+
},
|
1011
|
+
:vmpooler => {
|
1012
|
+
'template' => 'redhat-fips-8-x86_64'
|
1013
|
+
}
|
1014
|
+
},
|
995
1015
|
'redhat8-AARCH64' => {
|
996
1016
|
:general => {
|
997
1017
|
'platform' => 'el-8-aarch64',
|
@@ -1013,6 +1033,26 @@ module BeakerHostGenerator
|
|
1013
1033
|
'template' => 'redhat-8-power8'
|
1014
1034
|
}
|
1015
1035
|
},
|
1036
|
+
'redhat9-64' => {
|
1037
|
+
:general => {
|
1038
|
+
'platform' => 'el-9-x86_64',
|
1039
|
+
'packaging_platform' => 'el-9-x86_64'
|
1040
|
+
},
|
1041
|
+
:vmpooler => {
|
1042
|
+
'template' => 'redhat-9-x86_64'
|
1043
|
+
}
|
1044
|
+
},
|
1045
|
+
'rocky8-64' => {
|
1046
|
+
:general => {
|
1047
|
+
'platform' => 'el-8-x86_64',
|
1048
|
+
},
|
1049
|
+
:docker => {
|
1050
|
+
'docker_image_commands' => [
|
1051
|
+
'cp /bin/true /sbin/agetty',
|
1052
|
+
'yum install -y crontabs initscripts iproute openssl wget which glibc-langpack-en'
|
1053
|
+
]
|
1054
|
+
}
|
1055
|
+
},
|
1016
1056
|
'scientific5-32' => {
|
1017
1057
|
:general => {
|
1018
1058
|
'platform' => 'el-5-i386',
|
@@ -1592,6 +1632,16 @@ module BeakerHostGenerator
|
|
1592
1632
|
'template' => 'win-2019-core-x86_64'
|
1593
1633
|
}
|
1594
1634
|
},
|
1635
|
+
'windows2022-64' => {
|
1636
|
+
:general => {
|
1637
|
+
'platform' => 'windows-2022-64',
|
1638
|
+
'packaging_platform' => 'windows-2012-x64',
|
1639
|
+
'ruby_arch' => 'x64'
|
1640
|
+
},
|
1641
|
+
:vmpooler => {
|
1642
|
+
'template' => 'win-2022-x86_64'
|
1643
|
+
}
|
1644
|
+
},
|
1595
1645
|
'windows7-64' => {
|
1596
1646
|
:general => {
|
1597
1647
|
'platform' => 'windows-7-64',
|
@@ -23,10 +23,10 @@ module BeakerHostGenerator
|
|
23
23
|
base_config = base_generate_node(node_info, base_config, bhg_version, :vmpooler, :abs)
|
24
24
|
|
25
25
|
case node_info['ostype']
|
26
|
-
when /^centos/
|
27
|
-
base_config['template']
|
26
|
+
when /^(almalinux|centos|redhat|rocky)/
|
27
|
+
base_config['template'] ||= base_config['platform'].gsub(/^el/, $1)
|
28
28
|
when /^fedora/
|
29
|
-
base_config['template']
|
29
|
+
base_config['template'] ||= base_config['platform']
|
30
30
|
when /^ubuntu/
|
31
31
|
base_template = node_info['ostype'].sub('ubuntu', 'ubuntu-')
|
32
32
|
arch = case node_info['bits']
|
@@ -37,12 +37,12 @@ module BeakerHostGenerator
|
|
37
37
|
when 'AARCH64'
|
38
38
|
'arm64'
|
39
39
|
when 'POWER'
|
40
|
-
base_template
|
40
|
+
base_template.sub!(/ubuntu-(\d\d)/, 'ubuntu-\1.')
|
41
41
|
'power8'
|
42
42
|
else
|
43
43
|
raise "Unknown bits '#{node_info['bits']}' for '#{node_info['ostype']}'"
|
44
44
|
end
|
45
|
-
base_config['template']
|
45
|
+
base_config['template'] ||= "#{base_template}-#{arch}"
|
46
46
|
end
|
47
47
|
|
48
48
|
base_config
|
@@ -10,7 +10,7 @@ module BeakerHostGenerator
|
|
10
10
|
# default global configuration keys
|
11
11
|
def global_config
|
12
12
|
{
|
13
|
-
'pooling_api' => '
|
13
|
+
'pooling_api' => 'https://vmpooler-prod.k8s.infracore.puppet.net/'
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
@@ -18,10 +18,10 @@ module BeakerHostGenerator
|
|
18
18
|
base_config = base_generate_node(node_info, base_config, bhg_version, :vmpooler)
|
19
19
|
|
20
20
|
case node_info['ostype']
|
21
|
-
when /^centos/
|
22
|
-
base_config['template']
|
21
|
+
when /^(almalinux|centos|redhat|rocky)/
|
22
|
+
base_config['template'] ||= base_config['platform'].gsub(/^el/, $1)
|
23
23
|
when /^fedora/
|
24
|
-
base_config['template']
|
24
|
+
base_config['template'] ||= base_config['platform']
|
25
25
|
when /^ubuntu/
|
26
26
|
arch = case node_info['bits']
|
27
27
|
when '64'
|
@@ -32,7 +32,7 @@ module BeakerHostGenerator
|
|
32
32
|
nil
|
33
33
|
end
|
34
34
|
|
35
|
-
base_config['template']
|
35
|
+
base_config['template'] ||= "#{node_info['ostype'].sub('ubuntu', 'ubuntu-')}-#{arch}" if arch
|
36
36
|
end
|
37
37
|
|
38
38
|
# Some vmpooler/vsphere platforms have special requirements.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-hostgenerator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Branan Purvine-Riley
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-08
|
13
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -88,20 +88,6 @@ dependencies:
|
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '13.0'
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: simplecov
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
type: :development
|
99
|
-
prerelease: false
|
100
|
-
version_requirements: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
91
|
- !ruby/object:Gem::Dependency
|
106
92
|
name: pry
|
107
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,20 +144,6 @@ dependencies:
|
|
158
144
|
- - "~>"
|
159
145
|
- !ruby/object:Gem::Version
|
160
146
|
version: '1.0'
|
161
|
-
- !ruby/object:Gem::Dependency
|
162
|
-
name: stringify-hash
|
163
|
-
requirement: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - "~>"
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: 0.0.0
|
168
|
-
type: :runtime
|
169
|
-
prerelease: false
|
170
|
-
version_requirements: !ruby/object:Gem::Requirement
|
171
|
-
requirements:
|
172
|
-
- - "~>"
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 0.0.0
|
175
147
|
description: |
|
176
148
|
The beaker-hostgenerator tool will take a Beaker SUT (System Under Test) spec as
|
177
149
|
its first positional argument and use that to generate a Beaker host
|
@@ -236,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
208
|
- !ruby/object:Gem::Version
|
237
209
|
version: '0'
|
238
210
|
requirements: []
|
239
|
-
rubygems_version: 3.
|
211
|
+
rubygems_version: 3.2.32
|
240
212
|
signing_key:
|
241
213
|
specification_version: 4
|
242
214
|
summary: Beaker Host Generator Utility
|