beaker-hostgenerator 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62f9f72385b498796e24c6b39c8b361d1f682380c43e09a546212705872c70d8
4
- data.tar.gz: b6c5b7e338501c799cba250c6e93f79355f963be691b2dab402f19f4a8b3ef85
3
+ metadata.gz: 16540347041d92360ba40f436e60f4e2ed70619814dbb59c74997bc3639f28b9
4
+ data.tar.gz: edf020e5aca17dec0db631a380c87d6a66028de004732a7189d5f94b8fd82d19
5
5
  SHA512:
6
- metadata.gz: 2c9a8b6ad903b0e745bb4f7a96061a9f9de1ee0ea7c1e7f57cd6d5a9f8dd8d87a6fd54bc4e3d94638fa11efa533f916dfd6a5acdd7c9d327928a942fb75eedfc
7
- data.tar.gz: b94b8f1a329c7d0ad6c9b71164c6d72af429fd80d2496c8138bbe2efdeef544723d74838940a3106a15ae54474bcd88338426a2848fbdf4e651980f4594e8cc8
6
+ metadata.gz: f5dca8dc5d3df2aff28a53a63fd440302e5eba1c9fd06f87a2f0fe7265aa46615cf3d87cbc7ec162818d379e9511b516529fcda317ab080a42728508a83943e4
7
+ data.tar.gz: 2dd6e85f44ddfde8f5e004f2033b52f26e8c29fb4398b427dc3fb65f9c66ce35fd9980934e3019c95bceffc1c4887a02ca58c873d1c15623eab6c64296206fc4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.18.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.18.0) (2022-12-12)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.17.0...1.18.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Add Almalinux/Rocky 9 support [\#262](https://github.com/voxpupuli/beaker-hostgenerator/pull/262) ([bastelfreak](https://github.com/bastelfreak))
12
+ - Add hcloud support [\#261](https://github.com/voxpupuli/beaker-hostgenerator/pull/261) ([bastelfreak](https://github.com/bastelfreak))
13
+
5
14
  ## [1.17.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.17.0) (2022-09-12)
6
15
 
7
16
  [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, static (non-provisioned) nodes, and is designed in a way that makes
46
- it possible to easily add support for additional hypervisors
47
- (any hypervisor type supported by [beaker][beaker]).
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'
@@ -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'
@@ -1,5 +1,5 @@
1
1
  module BeakerHostGenerator
2
2
  module Version
3
- STRING = '1.17.0'
3
+ STRING = '1.18.0'
4
4
  end
5
5
  end
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.17.0
4
+ version: 1.18.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: 2022-09-12 00:00:00.000000000 Z
13
+ date: 2022-12-12 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