Skip to content

Commit

Permalink
Merge pull request #341 from yachub/add-macos-14
Browse files Browse the repository at this point in the history
Add osx14-64 and osx14-ARM64 support
  • Loading branch information
ekohl authored Nov 1, 2023
2 parents 78c8a2d + 47206a9 commit 3c687cf
Show file tree
Hide file tree
Showing 12 changed files with 224 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/beaker-hostgenerator/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,10 @@ def generate_osinfo
yield ["opensuse#{release}-32", "opensuse-#{release}-i386"]
yield ["opensuse#{release}-64", "opensuse-#{release}-x86_64"]
end

# macOS
yield %w[osx14-64 osx-14-x86_64]
yield %w[osx14-ARM64 osx-14-arm64]
end
end
end
2 changes: 2 additions & 0 deletions lib/beaker-hostgenerator/hypervisor/abs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def generate_node(node_info, base_config, bhg_version)
raise "Unknown bits '#{node_info['bits']}' for '#{node_info['ostype']}'"
end
base_config['template'] ||= "#{base_template}-#{arch}"
when /^osx/
base_config['template'] ||= base_config['platform']&.gsub(/^osx/, 'macos')
end

base_config
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/generated/default/osx14-64aulcdfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
arguments_string: osx14-64aulcdfm
environment_variables: {}
expected_hash:
HOSTS:
osx14-64-1:
platform: osx-14-x86_64
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
13 changes: 13 additions & 0 deletions test/fixtures/generated/default/osx14-ARM64a
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
arguments_string: osx14-ARM64a
environment_variables: {}
expected_hash:
HOSTS:
osx14-ARM64-1:
platform: osx-14-arm64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
arguments_string: osx14-64aulcdfm-sles11-32-osx14-64a
environment_variables: {}
expected_hash:
HOSTS:
osx14-64-1:
platform: osx-14-x86_64
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
sles11-32-1:
platform: sles-11-i386
template: sles-11-i386
hypervisor: vmpooler
roles:
- agent
osx14-64-2:
platform: osx-14-x86_64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
arguments_string: osx14-ARM64a-redhat9-POWER-osx14-ARM64aulcdfm
environment_variables: {}
expected_hash:
HOSTS:
osx14-ARM64-1:
platform: osx-14-arm64
hypervisor: vmpooler
roles:
- agent
redhat9-POWER-1:
platform: el-9-ppc64le
hypervisor: vmpooler
template: redhat-9-ppc64le
roles:
- agent
osx14-ARM64-2:
platform: osx-14-arm64
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
arguments_string: redhat9-POWERa-osx14-ARM64-redhat9-POWERaulcdfm
environment_variables: {}
expected_hash:
HOSTS:
redhat9-POWER-1:
platform: el-9-ppc64le
hypervisor: vmpooler
template: redhat-9-ppc64le
roles:
- agent
osx14-ARM64-1:
platform: osx-14-arm64
hypervisor: vmpooler
roles:
- agent
redhat9-POWER-2:
platform: el-9-ppc64le
hypervisor: vmpooler
template: redhat-9-ppc64le
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
arguments_string: sles11-32a-osx14-64-sles11-32aulcdfm
environment_variables: {}
expected_hash:
HOSTS:
sles11-32-1:
platform: sles-11-i386
template: sles-11-i386
hypervisor: vmpooler
roles:
- agent
osx14-64-1:
platform: osx-14-x86_64
hypervisor: vmpooler
roles:
- agent
sles11-32-2:
platform: sles-11-i386
template: sles-11-i386
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
19 changes: 19 additions & 0 deletions test/fixtures/generated/osinfo-version-0/osx14-64aulcdfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
arguments_string: "--osinfo-version 0 osx14-64aulcdfm"
environment_variables: {}
expected_hash:
HOSTS:
osx14-64-1:
platform: osx-14-x86_64
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
13 changes: 13 additions & 0 deletions test/fixtures/generated/osinfo-version-0/osx14-ARM64a
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
arguments_string: "--osinfo-version 0 osx14-ARM64a"
environment_variables: {}
expected_hash:
HOSTS:
osx14-ARM64-1:
platform: osx-14-arm64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
19 changes: 19 additions & 0 deletions test/fixtures/generated/osinfo-version-1/osx14-64aulcdfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
arguments_string: "--osinfo-version 1 osx14-64aulcdfm"
environment_variables: {}
expected_hash:
HOSTS:
osx14-64-1:
platform: osx-14-x86_64
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
13 changes: 13 additions & 0 deletions test/fixtures/generated/osinfo-version-1/osx14-ARM64a
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
arguments_string: "--osinfo-version 1 osx14-ARM64a"
environment_variables: {}
expected_hash:
HOSTS:
osx14-ARM64-1:
platform: osx-14-arm64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:

0 comments on commit 3c687cf

Please sign in to comment.