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.
Merge pull request #1558 from alekitto/proxmox-rockylinux9
add proxmox rockylinux 9
- Loading branch information
Showing
4 changed files
with
128 additions
and
3 deletions.
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
102 changes: 102 additions & 0 deletions
102
images/capi/packer/proxmox/linux/rockylinux/http/9/ks.cfg
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,102 @@ | ||
# Use CDROM installation media | ||
repo --name="AppStream" --baseurl="http://download.rockylinux.org/pub/rocky/9/AppStream/x86_64/os/" | ||
cdrom | ||
|
||
# Use text install | ||
text | ||
|
||
# Don't run the Setup Agent on first boot | ||
firstboot --disabled | ||
eula --agreed | ||
|
||
# Keyboard layouts | ||
keyboard --vckeymap=us --xlayouts='us' | ||
|
||
# System language | ||
lang en_US.UTF-8 | ||
|
||
# Network information | ||
network --bootproto=dhcp --onboot=on --ipv6=auto --activate --hostname=capv.vm | ||
|
||
# Lock Root account | ||
rootpw --lock | ||
|
||
# Create builder user | ||
user --name=builder --groups=wheel --password=builder --plaintext --shell=/bin/bash | ||
|
||
# System services | ||
selinux --permissive | ||
firewall --disabled | ||
services --enabled="NetworkManager,sshd,chronyd" | ||
|
||
# System timezone | ||
timezone UTC | ||
|
||
# System booloader configuration | ||
bootloader --location=mbr --boot-drive=sda | ||
zerombr | ||
clearpart --all --initlabel --drives=sda | ||
part / --fstype="ext4" --grow --asprimary --label=slash --ondisk=sda | ||
|
||
skipx | ||
|
||
%packages --ignoremissing --excludedocs | ||
openssh-server | ||
qemu-guest-agent | ||
sudo | ||
sed | ||
python3 | ||
|
||
# unnecessary firmware | ||
-aic94xx-firmware | ||
-atmel-firmware | ||
-b43-openfwwf | ||
-bfa-firmware | ||
-ipw2100-firmware | ||
-ipw2200-firmware | ||
-ivtv-firmware | ||
-iwl*-firmware | ||
-libertas-usb8388-firmware | ||
-ql*-firmware | ||
-rt61pci-firmware | ||
-rt73usb-firmware | ||
-xorg-x11-drv-ati-firmware | ||
-zd1211-firmware | ||
-cockpit | ||
-quota | ||
-alsa-* | ||
-fprintd-pam | ||
-intltool | ||
-microcode_ctl | ||
%end | ||
|
||
%addon com_redhat_kdump --disable | ||
%end | ||
|
||
reboot | ||
|
||
%post | ||
|
||
echo 'builder ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/builder | ||
chmod 440 /etc/sudoers.d/builder | ||
|
||
# Remove the package cache | ||
yum -y clean all | ||
|
||
swapoff -a | ||
rm -f /swapfile | ||
sed -ri '/\sswap\s/s/^#?/#/' /etc/fstab | ||
|
||
dnf install -y cloud-init systemd-resolved | ||
|
||
# Allow guest-exec operation from qemu-guest-agent | ||
echo 'FILTER_RPC_ARGS=$FILTER_RPC_ARGS,guest-exec' >> /etc/sysconfig/qemu-ga | ||
|
||
systemctl enable qemu-guest-agent | ||
systemctl start qemu-guest-agent | ||
systemctl enable systemd-resolved | ||
|
||
# Ensure on next boot that network devices get assigned unique IDs. | ||
sed -i '/^\(HWADDR\|UUID\)=/d' /etc/sysconfig/network-scripts/ifcfg-* | ||
|
||
%end |
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,19 @@ | ||
{ | ||
"boot_command_prefix": "<up><tab> text inst.ks=", | ||
"boot_command_suffix": "/9/ks.cfg<enter><wait><enter>", | ||
"boot_media_path": "http://{{ .HTTPIP }}:{{ .HTTPPort }}", | ||
"build_name": "rockylinux-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", | ||
"firmware": "efi", | ||
"guest_os_type": "rockylinux-64", | ||
"iso_checksum": "ee3ac97fdffab58652421941599902012179c37535aece76824673105169c4a2", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-minimal.iso", | ||
"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", | ||
"vsphere_guest_os_type": "rockylinux_64Guest" | ||
} |