Skip to content

Commit

Permalink
Merge pull request #380 from skyamgarp/fix-rocky-and-almalinux-arm-te…
Browse files Browse the repository at this point in the history
…mplate-name

Fix template name for rocky9 and almalinux9 arm
  • Loading branch information
bastelfreak authored Jul 4, 2024
2 parents 62d51f1 + d39d33c commit 66889f9
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 20 deletions.
50 changes: 42 additions & 8 deletions lib/beaker-hostgenerator/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,48 @@ def osinfo
'template' => 'redhat-9-arm64',
},
},
'rocky8-64' => {
general: {
'platform' => 'el-8-x86_64',
},
},
'rocky9-64' => {
general: {
'platform' => 'el-9-x86_64',
},
},
'rocky9-AARCH64' => {
general: {
'platform' => 'el-9-aarch64',
},
abs: {
'template' => 'rocky-9-arm64',
},
vmpooler: {
'template' => 'rocky-9-arm64',
},
},
'almalinux8-64' => {
general: {
'platform' => 'el-8-x86_64',
},
},
'almalinux9-64' => {
general: {
'platform' => 'el-9-x86_64',
},
},
'almalinux9-AARCH64' => {
general: {
'platform' => 'el-9-aarch64',
},
abs: {
'template' => 'almalinux-9-arm64',
},
vmpooler: {
'template' => 'almalinux-9-arm64',
},
},
'redhat9-POWER' => {
general: {
'platform' => 'el-9-ppc64le',
Expand Down Expand Up @@ -1135,14 +1177,6 @@ def generate_osinfo
yield %w[amazon2023-64 amazon-2023-x86_64]
yield %w[amazon2023-AARCH64 amazon-2023-aarch64]

# AlmaLinux and Rocky
%w[almalinux rocky].each do |os|
(8..9).each do |release|
yield ["#{os}#{release}-64", "el-#{release}-x86_64"]
yield ["#{os}#{release}-AARCH64", "el-#{release}-aarch64"]
end
end

# Oracle / OracleLinux
yield ['oracle6-32', 'el-6-i386']
(6..9).each do |release|
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/generated/default/almalinux9-AARCH64d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
almalinux9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: almalinux-9-aarch64
template: almalinux-9-arm64
roles:
- agent
- database
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/generated/default/rocky9-AARCH64a
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
rocky9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: rocky-9-aarch64
template: rocky-9-arm64
roles:
- agent
CONFIG:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
almalinux9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: almalinux-9-aarch64
template: almalinux-9-arm64
roles:
- agent
- database
Expand All @@ -18,7 +18,7 @@ expected_hash:
almalinux9-AARCH64-2:
platform: el-9-aarch64
hypervisor: vmpooler
template: almalinux-9-aarch64
template: almalinux-9-arm64
roles:
- agent
- dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
rocky9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: rocky-9-aarch64
template: rocky-9-arm64
roles:
- agent
sles11-32-1:
Expand All @@ -18,7 +18,7 @@ expected_hash:
rocky9-AARCH64-2:
platform: el-9-aarch64
hypervisor: vmpooler
template: rocky-9-aarch64
template: rocky-9-arm64
roles:
- agent
- ca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ expected_hash:
rocky9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: rocky-9-aarch64
template: rocky-9-arm64
roles:
- agent
sles11-32-2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ expected_hash:
almalinux9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: almalinux-9-aarch64
template: almalinux-9-arm64
roles:
- agent
sles12-S390X-2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
almalinux9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: almalinux-9-aarch64
template: almalinux-9-arm64
roles:
- agent
- database
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/generated/osinfo-version-0/rocky9-AARCH64a
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
rocky9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: rocky-9-aarch64
template: rocky-9-arm64
roles:
- agent
CONFIG:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
almalinux9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: almalinux-9-aarch64
template: almalinux-9-arm64
roles:
- agent
- database
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/generated/osinfo-version-1/rocky9-AARCH64a
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expected_hash:
rocky9-AARCH64-1:
platform: el-9-aarch64
hypervisor: vmpooler
template: rocky-9-aarch64
template: rocky-9-arm64
roles:
- agent
CONFIG:
Expand Down

0 comments on commit 66889f9

Please sign in to comment.