From e6896b13c2757e3b36a574f83fffc74922470132 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 21 Dec 2023 09:04:37 -0500 Subject: [PATCH] platforms, tmt: Rename and restructure cloud variants We now have more than one cloud system that is essentially a KVM environment that uses cloud-init to boot, so now we declare that "generic" and have the OpenStack and Oracle images reuse those definitions. Also, in preparation for layered cloud image variants, rename them from "Cloud-" to "Cloud-Base-". Vagrant variants are similarly prefixed to make it clear who provides them. Finally, restructure the layout of the tmt plans to match the description structure. --- README.md | 4 +-- platforms/cloud.xml | 31 ++++++++++--------- platforms/vagrant.xml | 12 +++---- tmt/plans/build-vagrant-libvirt.fmf | 8 ----- .../base/build-aws.fmf} | 4 +-- tmt/plans/{ => cloud/base}/build-azure.fmf | 4 +-- tmt/plans/{ => cloud/base}/build-gcp.fmf | 4 +-- .../base/build-generic.fmf} | 4 +-- tmt/plans/vagrant/base/build-libvirt.fmf | 8 +++++ .../base/build-virtualbox.fmf} | 4 +-- 10 files changed, 43 insertions(+), 40 deletions(-) delete mode 100644 tmt/plans/build-vagrant-libvirt.fmf rename tmt/plans/{build-openstack.fmf => cloud/base/build-aws.fmf} (51%) rename tmt/plans/{ => cloud/base}/build-azure.fmf (53%) rename tmt/plans/{ => cloud/base}/build-gcp.fmf (54%) rename tmt/plans/{build-aws.fmf => cloud/base/build-generic.fmf} (52%) create mode 100644 tmt/plans/vagrant/base/build-libvirt.fmf rename tmt/plans/{build-vagrant-virtualbox.fmf => vagrant/base/build-virtualbox.fmf} (57%) diff --git a/README.md b/README.md index 4138fae..61bd69a 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ All changes should be made via the PR workflow. ## Image variants -* Cloud Edition (image type: `oem`, image profiles: `Cloud-OpenStack`/`Cloud-AmazonEC2`/`Cloud-Azure`/`Cloud-GCE`/`Cloud-Oracle`) +* Base Cloud Edition for clouds (image type: `oem`, image profiles: `Cloud-Base-Generic`/`Cloud-Base-AmazonEC2`/`Cloud-Base-Azure`/`Cloud-Base-GCE`) +* Base Cloud Edition for Vagrant (image type: `oem`, image profiles: `Cloud-Base-Vagrant-libvirt`/`Cloud-Base-Vagrant-VirtualBox`) * KDE Spin (image type: `iso`, image profiles: `KDE-Live`) -* Vagrant Cloud Edition (image type: `oem`, image profiles: `Vagrant-libvirt`/`Vagrant-VirtualBox`) * Workstation Edition (image type: `iso`, image profiles: `Workstation-Live`) ## Image build quickstart diff --git a/platforms/cloud.xml b/platforms/cloud.xml index 62f86fe..2d5e28c 100644 --- a/platforms/cloud.xml +++ b/platforms/cloud.xml @@ -3,23 +3,26 @@ - + - + - + - + - - + + + + + - + @@ -33,7 +36,7 @@ - + 5 @@ -47,7 +50,7 @@ - + 5 @@ -61,7 +64,7 @@ - + 5 @@ -87,18 +90,18 @@ - + - + - + - + diff --git a/platforms/vagrant.xml b/platforms/vagrant.xml index 5dc45bf..9c784ff 100644 --- a/platforms/vagrant.xml +++ b/platforms/vagrant.xml @@ -3,14 +3,14 @@ - + - + - + 5 @@ -25,7 +25,7 @@ - + 5 @@ -52,10 +52,10 @@ - + - + diff --git a/tmt/plans/build-vagrant-libvirt.fmf b/tmt/plans/build-vagrant-libvirt.fmf deleted file mode 100644 index 7240ed1..0000000 --- a/tmt/plans/build-vagrant-libvirt.fmf +++ /dev/null @@ -1,8 +0,0 @@ -summary: Build Vagrant image for libvirt -discover: - how: fmf -environment: - image_type: oem - image_profile: Vagrant-libvirt -execute: - how: tmt diff --git a/tmt/plans/build-openstack.fmf b/tmt/plans/cloud/base/build-aws.fmf similarity index 51% rename from tmt/plans/build-openstack.fmf rename to tmt/plans/cloud/base/build-aws.fmf index 3f0eb22..f2d2fe4 100644 --- a/tmt/plans/build-openstack.fmf +++ b/tmt/plans/cloud/base/build-aws.fmf @@ -1,8 +1,8 @@ -summary: Build OpenStack image +summary: Build AWS EC2 base image discover: how: fmf environment: image_type: oem - image_profile: Cloud-OpenStack + image_profile: Cloud-Base-AmazonEC2 execute: how: tmt diff --git a/tmt/plans/build-azure.fmf b/tmt/plans/cloud/base/build-azure.fmf similarity index 53% rename from tmt/plans/build-azure.fmf rename to tmt/plans/cloud/base/build-azure.fmf index 6b43b63..970ee9a 100644 --- a/tmt/plans/build-azure.fmf +++ b/tmt/plans/cloud/base/build-azure.fmf @@ -1,8 +1,8 @@ -summary: Build Azure image +summary: Build Azure base image discover: how: fmf environment: image_type: oem - image_profile: Cloud-Azure + image_profile: Cloud-Base-Azure execute: how: tmt diff --git a/tmt/plans/build-gcp.fmf b/tmt/plans/cloud/base/build-gcp.fmf similarity index 54% rename from tmt/plans/build-gcp.fmf rename to tmt/plans/cloud/base/build-gcp.fmf index f5945da..abe823c 100644 --- a/tmt/plans/build-gcp.fmf +++ b/tmt/plans/cloud/base/build-gcp.fmf @@ -1,8 +1,8 @@ -summary: Build GCP image +summary: Build GCP base image discover: how: fmf environment: image_type: oem - image_profile: Cloud-GCE + image_profile: Cloud-Base-GCE execute: how: tmt diff --git a/tmt/plans/build-aws.fmf b/tmt/plans/cloud/base/build-generic.fmf similarity index 52% rename from tmt/plans/build-aws.fmf rename to tmt/plans/cloud/base/build-generic.fmf index 7f6a327..752bf11 100644 --- a/tmt/plans/build-aws.fmf +++ b/tmt/plans/cloud/base/build-generic.fmf @@ -1,8 +1,8 @@ -summary: Build AWS EC2 image +summary: Build Generic base image discover: how: fmf environment: image_type: oem - image_profile: Cloud-AmazonEC2 + image_profile: Cloud-Base-Generic execute: how: tmt diff --git a/tmt/plans/vagrant/base/build-libvirt.fmf b/tmt/plans/vagrant/base/build-libvirt.fmf new file mode 100644 index 0000000..8c49c19 --- /dev/null +++ b/tmt/plans/vagrant/base/build-libvirt.fmf @@ -0,0 +1,8 @@ +summary: Build base Vagrant image for libvirt +discover: + how: fmf +environment: + image_type: oem + image_profile: Cloud-Base-Vagrant-libvirt +execute: + how: tmt diff --git a/tmt/plans/build-vagrant-virtualbox.fmf b/tmt/plans/vagrant/base/build-virtualbox.fmf similarity index 57% rename from tmt/plans/build-vagrant-virtualbox.fmf rename to tmt/plans/vagrant/base/build-virtualbox.fmf index d850aa8..9fcd97e 100644 --- a/tmt/plans/build-vagrant-virtualbox.fmf +++ b/tmt/plans/vagrant/base/build-virtualbox.fmf @@ -1,4 +1,4 @@ -summary: Build Vagrant image for VirtualBox +summary: Build base Vagrant image for VirtualBox discover: how: fmf adjust: @@ -6,6 +6,6 @@ adjust: when: arch != x86_64 environment: image_type: oem - image_profile: Vagrant-VirtualBox + image_profile: Cloud-Base-Vagrant-VirtualBox execute: how: tmt