puppetlabs / puppet_litmus

Providing a simple command line tool for puppet content creators, to enable simple and complex test deployments.
Apache License 2.0
88 stars 55 forks source link

(CAT-1545) - Return RHEL-9 ARM images in matrix #532

Closed jordanbreen28 closed 8 months ago

jordanbreen28 commented 8 months ago

This PR adds a new constant ARM_IMAGE_TABLE which contains viable arm architecture images in GCP. Now whenever rhel-9 is listed as a supported OS in a modules metadata, both the intel and arm GCP image details are returned. Have opted for bugfix label as fixes regression in https://github.com/puppetlabs/puppet_litmus/pull/530. We cannot specify arm explicitly in the metadata.json.

Related Issues (if any)

https://perforce.atlassian.net/browse/CAT-1545

Checklist

Verified with metadata.json containing rhel-9 that both the rhel-9 intel and rhel-9-arm entries are returned:

matrix={"platforms":[{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"},{"label":"RedHat-9","provider":"provision_service","image":"rhel-9"},{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},{"label":"Ubuntu-18.04","provider":"docker","image":"litmusimage/ubuntu:18.04"}],"collection":["puppet7-nightly","puppet8-nightly"]}
spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}