kickstarts/cloud
2024-08-21 20:10:24 -07:00
..
README.md Renames and readmes 2023-04-12 23:48:02 -07:00
rocky-azure-base.ks Backport sig_core/rocky-kiwi-descriptions#3 and mod readme 2024-08-21 20:10:24 -07:00
rocky-azure-lvm.ks Backport sig_core/rocky-kiwi-descriptions#3 and mod readme 2024-08-21 20:10:24 -07:00
rocky-cloud-azure-packages.ks add templates for 9 2022-11-22 12:46:42 -07:00
rocky-cloud-base-packages.ks add templates for 9 2022-11-22 12:46:42 -07:00
rocky-cloud-base.ks add templates for 9 2022-11-22 12:46:42 -07:00
rocky-cloud-ocp-packages.ks ignoremissing ovmd on ocp 2024-05-09 15:31:38 -04:00
rocky-cloud-parts-base.ks add %pre to base images 2023-03-22 14:15:52 -07:00
rocky-cloud-parts-lvm.ks set onparts 2023-01-26 14:33:22 -07:00
rocky-ec2-base.ks fix: aarch does not have xen drivers 2024-02-01 16:30:03 +01:00
rocky-ec2-lvm.ks fix: aarch does not have xen drivers 2024-02-01 16:30:03 +01:00
rocky-genclo-base.ks Backport sig_core/rocky-kiwi-descriptions#3 and mod readme 2024-08-21 20:10:24 -07:00
rocky-genclo-lvm.ks Backport sig_core/rocky-kiwi-descriptions#3 and mod readme 2024-08-21 20:10:24 -07:00
rocky-ocp-base.ks Backport sig_core/rocky-kiwi-descriptions#3 and mod readme 2024-08-21 20:10:24 -07:00
rocky-ocp.ks Backport sig_core/rocky-kiwi-descriptions#3 and mod readme 2024-08-21 20:10:24 -07:00

Cloud Templates

This directory contains templated versions of the cloud images. This is extremely useful for us to be able to create more variants or modify all variants at once if need be.

The general guidelines/ideas work like this:

  • Start with a basic name, such as rocky-${provider}-${variant}.ks

  • Optionally create additional kickstarts, such as an additional packages file

  • Include the very base as necessary:

    • rocky-cloud-base.ks
    • rocky-cloud-parts-base.ks or rocky-cloud-parts-lvm.ks
  • Include other customizations from another kickstart as necessary, such as an additional packages kickstart

  • bootloader configuration and then final %post ... %end section

The most basic example of our most basic generic cloud image goes like this. See comments for details.

# rocky-genclo-base.ks

# Imports the absolute base for the cloud images. This is general setup settings.
%include rocky-cloud-base.ks

# Imports partition scheme and creation for the image. This is non-LVM.
%include rocky-cloud-parts-base.ks

# Imports base packages that all cloud images are expected to have
%include rocky-cloud-base-packages.ks

# bootloader information, each cloud will have different settings, so better we put it here.
bootloader --append="console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0" --location=mbr --timeout=1

# Anything else can go here that isn't fulfilled by custom or base templates.
# This can be repos if needed.

# the final post section is done here (we've removed all of it for the sake of the example)
%post --erroronfail
. . .
%end

At the end, you would run run ksflatten, and you now have a customized kickstart.

ksflatten -c rocky-genclo-base.ks -o Rocky-X-GenericCloud-Base.ks