beaker-hostgenerator 1.16.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: 69b2f2c40ffe6bc46d90c32000967d795a337b31ed50a4a9f3f4f276256b3988
4
- data.tar.gz: 3d2e1aba19bd4d5c65f0156de506c0b9d1b1f68e7990b850a673893a78c666ad
3
+ metadata.gz: 16540347041d92360ba40f436e60f4e2ed70619814dbb59c74997bc3639f28b9
4
+ data.tar.gz: edf020e5aca17dec0db631a380c87d6a66028de004732a7189d5f94b8fd82d19
5
5
  SHA512:
6
- metadata.gz: 2aaca4406e7c5af197aff67d01403907dcafca107b857f6010fbe85516d377fdb6e50801e6d2d9c03fc8928eeb5584a8e1d584fe34b1ea151d03e8c5fe000d04
7
- data.tar.gz: acc6702cf0a0c0fb36abf7fdcb3d27f0fcfc9aa340c77f0222086fb2f266d63c3f48e45fde3d76a6fb155f2cc9d049a92340b39f65d440e434ddbffb9c68d2ac
6
+ metadata.gz: f5dca8dc5d3df2aff28a53a63fd440302e5eba1c9fd06f87a2f0fe7265aa46615cf3d87cbc7ec162818d379e9511b516529fcda317ab080a42728508a83943e4
7
+ data.tar.gz: 2dd6e85f44ddfde8f5e004f2033b52f26e8c29fb4398b427dc3fb65f9c66ce35fd9980934e3019c95bceffc1c4887a02ca58c873d1c15623eab6c64296206fc4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
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
+
14
+ ## [1.17.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.17.0) (2022-09-12)
15
+
16
+ [Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.16.0...1.17.0)
17
+
18
+ **Merged pull requests:**
19
+
20
+ - \(PE-34537\) Update main PE version to 2023.0 [\#257](https://github.com/voxpupuli/beaker-hostgenerator/pull/257) ([nmburgan](https://github.com/nmburgan))
21
+
5
22
  ## [1.16.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/1.16.0) (2022-06-27)
6
23
 
7
24
  [Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/1.15.0...1.16.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
  ```
@@ -13,7 +13,7 @@ module BeakerHostGenerator
13
13
  # `include BeakerHostGenerator::Data` and then `<function>()`.
14
14
  module Data
15
15
  module_function
16
- MAIN_PE_VERSION=2021.0
16
+ MAIN_PE_VERSION='2023.0'
17
17
  PE_TARBALL_SERVER="https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local"
18
18
 
19
19
  def pe_version
@@ -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.16.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.16.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-06-27 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