beaker-hostgenerator 1.17.0 → 1.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +4 -3
- data/lib/beaker-hostgenerator/data.rb +22 -0
- data/lib/beaker-hostgenerator/hypervisor/docker.rb +13 -3
- data/lib/beaker-hostgenerator/hypervisor/hcloud.rb +26 -0
- data/lib/beaker-hostgenerator/hypervisor.rb +3 -1
- data/lib/beaker-hostgenerator/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99de0611f4a7330a169bc12359213635eadc4e820fea6d860727d5f74d0f3043
|
4
|
+
data.tar.gz: 7eceed33b7804cab7f940b77cee75d0c0a1e54de625e5908b3ee4eca19ba0b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2e3a91bdca8780e3679a0f24b88c8e48517da3d4209579433a348010a2a0213bd2a25d4a4d8b6fabbde33e5e5c12c30c48121aa0fd314c209858c0d12a7cb59
|
7
|
+
data.tar.gz: b534f3e88f5fc4f90f1d517ea00e13f9caa30d665abaf5ceea15dcd604df8977487b356eac41fefeea3d0d65e10407900250f0081fe4c4e8b499ec8773b52dcb
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,24 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [1.18.1](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.18.1) (2022-12-14)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.18.0...1.18.1)
|
8
|
+
|
9
|
+
**Fixed bugs:**
|
10
|
+
|
11
|
+
- AlmaLinux: Fix docker image names [\#265](https://github.com/voxpupuli/beaker-hostgenerator/pull/265) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
- RockyLinux: Fix docker image names [\#264](https://github.com/voxpupuli/beaker-hostgenerator/pull/264) ([bastelfreak](https://github.com/bastelfreak))
|
13
|
+
|
14
|
+
## [1.18.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.18.0) (2022-12-12)
|
15
|
+
|
16
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.17.0...1.18.0)
|
17
|
+
|
18
|
+
**Implemented enhancements:**
|
19
|
+
|
20
|
+
- Add Almalinux/Rocky 9 support [\#262](https://github.com/voxpupuli/beaker-hostgenerator/pull/262) ([bastelfreak](https://github.com/bastelfreak))
|
21
|
+
- Add hcloud support [\#261](https://github.com/voxpupuli/beaker-hostgenerator/pull/261) ([bastelfreak](https://github.com/bastelfreak))
|
22
|
+
|
5
23
|
## [1.17.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.17.0) (2022-09-12)
|
6
24
|
|
7
25
|
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.16.0...1.17.0)
|
data/README.md
CHANGED
@@ -42,9 +42,10 @@ information.
|
|
42
42
|
|
43
43
|
It currently provides built-in configuration for Puppets' internal
|
44
44
|
[vmpooler][vmpooler] hypervisor, [always-be-scheduling][always-be-scheduling]
|
45
|
-
hypervisor,
|
46
|
-
|
47
|
-
|
45
|
+
hypervisor, Vagrant with Virtualbox and Libvirt backend,
|
46
|
+
[Hetzner cloud](https://www.hetzner.com/cloud), static (non-provisioned) nodes,
|
47
|
+
and is designed in a way that makes it possible to easily add support for
|
48
|
+
additional hypervisors (any hypervisor type supported by [beaker][beaker]).
|
48
49
|
|
49
50
|
To see the list of built-in hypervisors you can run:
|
50
51
|
```
|
@@ -194,6 +194,17 @@ module BeakerHostGenerator
|
|
194
194
|
]
|
195
195
|
}
|
196
196
|
},
|
197
|
+
'almalinux9-64' => {
|
198
|
+
:general => {
|
199
|
+
'platform' => 'el-9-x86_64',
|
200
|
+
},
|
201
|
+
:docker => {
|
202
|
+
'docker_image_commands' => [
|
203
|
+
'cp /bin/true /sbin/agetty',
|
204
|
+
'yum install -y crontabs initscripts iproute openssl wget which glibc-langpack-en'
|
205
|
+
]
|
206
|
+
}
|
207
|
+
},
|
197
208
|
'amazon6-64' => {
|
198
209
|
:general => {
|
199
210
|
'platform' => 'el-6-x86_64'
|
@@ -1057,6 +1068,17 @@ module BeakerHostGenerator
|
|
1057
1068
|
]
|
1058
1069
|
}
|
1059
1070
|
},
|
1071
|
+
'rocky9-64' => {
|
1072
|
+
:general => {
|
1073
|
+
'platform' => 'el-9-x86_64',
|
1074
|
+
},
|
1075
|
+
:docker => {
|
1076
|
+
'docker_image_commands' => [
|
1077
|
+
'cp /bin/true /sbin/agetty',
|
1078
|
+
'yum install -y crontabs initscripts iproute openssl wget which glibc-langpack-en'
|
1079
|
+
]
|
1080
|
+
}
|
1081
|
+
},
|
1060
1082
|
'scientific5-32' => {
|
1061
1083
|
:general => {
|
1062
1084
|
'platform' => 'el-5-i386'
|
@@ -10,9 +10,19 @@ module BeakerHostGenerator
|
|
10
10
|
def generate_node(node_info, base_config, bhg_version)
|
11
11
|
base_config['docker_cmd'] = ['/sbin/init']
|
12
12
|
base_config['image'] = node_info['ostype'].sub(/(\d)/, ':\1')
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
case node_info['ostype']
|
14
|
+
when /^oracle/
|
15
|
+
base_config['image'].sub!(/\w+/, 'oraclelinux')
|
16
|
+
when /^opensuse/
|
17
|
+
base_config['image'].sub!(/(\w+)/, '\1/leap')
|
18
|
+
when /^ubuntu/
|
19
|
+
base_config['image'].sub!(/(\d{2})/, '\1.')
|
20
|
+
when /^rocky/
|
21
|
+
base_config['image'].sub!(/(\w+)/, 'rockylinux')
|
22
|
+
when /^alma/
|
23
|
+
base_config['image'].sub!(/(\w+)/, 'almalinux')
|
24
|
+
end
|
25
|
+
|
16
26
|
if node_info['bits'] == '64'
|
17
27
|
base_config['image'] = "amd64/#{base_config['image']}"
|
18
28
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'beaker-hostgenerator/data'
|
2
|
+
require 'beaker-hostgenerator/hypervisor'
|
3
|
+
|
4
|
+
module BeakerHostGenerator
|
5
|
+
module Hypervisor
|
6
|
+
|
7
|
+
class Hcloud < BeakerHostGenerator::Hypervisor::Interface
|
8
|
+
include BeakerHostGenerator::Data
|
9
|
+
|
10
|
+
def generate_node(node_info, base_config, bhg_version)
|
11
|
+
# split ostype into string and array
|
12
|
+
# ostype is ubuntu2204, debian10, rocky9
|
13
|
+
os, version = node_info['ostype'].split(/(\D+)/).reject!(&:empty?)
|
14
|
+
base_config['image'] = case os
|
15
|
+
when 'ubuntu'
|
16
|
+
"#{os}-#{version[0, 2]}.#{version[2,2]}"
|
17
|
+
when 'centos'
|
18
|
+
version.to_i == 7 ? "#{os}-#{version}" : "#{os}-stream-#{version}"
|
19
|
+
else
|
20
|
+
"#{os}-#{version}"
|
21
|
+
end
|
22
|
+
return base_generate_node(node_info, base_config, bhg_version, :hcloud)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -45,7 +45,8 @@ module BeakerHostGenerator
|
|
45
45
|
'vagrant' => BeakerHostGenerator::Hypervisor::Vagrant,
|
46
46
|
'vagrant_libvirt' => BeakerHostGenerator::Hypervisor::Vagrant,
|
47
47
|
'docker' => BeakerHostGenerator::Hypervisor::Docker,
|
48
|
-
'abs' => BeakerHostGenerator::Hypervisor::ABS
|
48
|
+
'abs' => BeakerHostGenerator::Hypervisor::ABS,
|
49
|
+
'hcloud' => BeakerHostGenerator::Hypervisor::Hcloud,
|
49
50
|
}
|
50
51
|
end
|
51
52
|
|
@@ -114,3 +115,4 @@ require 'beaker-hostgenerator/hypervisor/vmpooler'
|
|
114
115
|
require 'beaker-hostgenerator/hypervisor/vagrant'
|
115
116
|
require 'beaker-hostgenerator/hypervisor/docker'
|
116
117
|
require 'beaker-hostgenerator/hypervisor/abs'
|
118
|
+
require 'beaker-hostgenerator/hypervisor/hcloud'
|
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.18.1
|
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: 2022-
|
13
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/beaker-hostgenerator/hypervisor.rb
|
183
183
|
- lib/beaker-hostgenerator/hypervisor/abs.rb
|
184
184
|
- lib/beaker-hostgenerator/hypervisor/docker.rb
|
185
|
+
- lib/beaker-hostgenerator/hypervisor/hcloud.rb
|
185
186
|
- lib/beaker-hostgenerator/hypervisor/unknown.rb
|
186
187
|
- lib/beaker-hostgenerator/hypervisor/vagrant.rb
|
187
188
|
- lib/beaker-hostgenerator/hypervisor/vmpooler.rb
|