generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distributions often ship images which are pre-installed and optimized for cloud usage which is the case for most `qemu` images. It is far better to leverage those existing optimized images and put our components on top of it rather than install from scratch in an ISO each time. This will result in faster build times (preventing the lengthy install process and making it a simple quick boot) and make builds more reliable indirectly because of that. It will also ensure that the image will be more cloud-native with things like serial interface being mounted in the right place, etc. This was setup in a way that existing images can continue to live with these new ones using a -cloudimg prefix, so both can continue to work should there be people with a preference to build using ISO images still. Since some of the images don't ship with Python, the firstboot playbook has been updated to support installing Python if it is not installed.
- Loading branch information
Showing
8 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#cloud-config | ||
ssh_pwauth: true | ||
users: | ||
- name: builder | ||
passwd: $6$xyz$UtXVazU08Q5b8AW.TJ3MPYZglyXa3Ttf2RCel8MCUPlEYO1evWxeWBhZ2QqivU/Ij4tqYAxMCqc2ujEM4dMSe1 | ||
groups: [adm, cdrom, dip, plugdev, lxd, sudo] | ||
lock-passwd: false | ||
sudo: ALL=(ALL) NOPASSWD:ALL | ||
shell: /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"build_name": "rockylinux-8", | ||
"cd_files": "./packer/qemu/cloud-init/*", | ||
"disk_image": "true", | ||
"distribution_version": "8", | ||
"distro_arch": "amd64", | ||
"distro_name": "rockylinux", | ||
"distro_version": "8", | ||
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8", | ||
"guest_os_type": "centos8-64", | ||
"iso_checksum": "https://dl.rockylinux.org/pub/rocky/8/images/x86_64/CHECKSUM", | ||
"iso_checksum_type": "file", | ||
"iso_url": "https://dl.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2", | ||
"os_display_name": "RockyLinux 8", | ||
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm", | ||
"shutdown_command": "/sbin/halt -h -p" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"build_name": "rockylinux-9", | ||
"cd_files": "./packer/qemu/cloud-init/*", | ||
"disk_image": "true", | ||
"distribution_version": "9", | ||
"distro_arch": "amd64", | ||
"distro_name": "rockylinux", | ||
"distro_version": "9", | ||
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9", | ||
"guest_os_type": "centos9-64", | ||
"iso_checksum": "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/CHECKSUM", | ||
"iso_checksum_type": "file", | ||
"iso_url": "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2", | ||
"os_display_name": "RockyLinux 9", | ||
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm", | ||
"shutdown_command": "/sbin/halt -h -p" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"build_name": "ubuntu-2204", | ||
"cd_files": "./packer/qemu/cloud-init/*", | ||
"disk_image": "true", | ||
"distribution_version": "2204", | ||
"distro_name": "ubuntu", | ||
"guest_os_type": "ubuntu-64", | ||
"iso_checksum": "https://cloud-images.ubuntu.com/jammy/current/SHA256SUMS", | ||
"iso_checksum_type": "file", | ||
"iso_url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img", | ||
"os_display_name": "Ubuntu 22.04", | ||
"shutdown_command": "shutdown -P now" | ||
} |