aboutsummaryrefslogtreecommitdiff
path: root/roles/libvirt/templates/kickstart
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2025-07-15 18:29:03 -0400
committerspmfox <spmfox@foxwd.com>2025-07-15 18:29:03 -0400
commit167b3da9926db3a4f507533427b72933c008dee6 (patch)
tree0becf90d8e9da037d8b02a0b1f69ce41e6730df3 /roles/libvirt/templates/kickstart
parent57dba39ce3df4a84e05138a7b42e37615d58abc8 (diff)
adding EL10, enhancing rhsm
Diffstat (limited to 'roles/libvirt/templates/kickstart')
-rw-r--r--roles/libvirt/templates/kickstart/el10.ks51
1 files changed, 51 insertions, 0 deletions
diff --git a/roles/libvirt/templates/kickstart/el10.ks b/roles/libvirt/templates/kickstart/el10.ks
new file mode 100644
index 0000000..5a95014
--- /dev/null
+++ b/roles/libvirt/templates/kickstart/el10.ks
@@ -0,0 +1,51 @@
+#version=RHEL10
+text
+reboot
+
+repo --name="AppStream" --baseurl=file:///run/install/sources/mount-0000-cdrom/AppStream
+
+%packages
+@^server-product-environment
+kexec-tools
+
+%end
+
+# Keyboard layouts
+keyboard --xlayouts='us'
+# System language
+lang en_US.UTF-8
+
+# Network information
+network --bootproto=dhcp --device=enp1s0 --noipv6 --activate
+network --hostname={{ libvirt_kickstart_hostname }}
+
+# Use CDROM installation media
+cdrom
+
+# Run the Setup Agent on first boot
+firstboot --enable
+
+ignoredisk --only-use=vda
+autopart
+# Partition clearing information
+clearpart --none --initlabel
+
+# System timezone
+timezone {{ libvirt_kickstart_timezone }} --utc
+
+rootpw --iscrypted {{ libvirt_kickstart_root_password | password_hash("sha512") }}
+
+%post
+mkdir -m0700 /root/.ssh/
+
+cat <<EOF >/root/.ssh/authorized_keys
+{{ libvirt_kickstart_root_ssh_key }}
+EOF
+
+chmod 0600 /root/.ssh/authorized_keys
+
+restorecon -R /root/.ssh/
+
+{{ libvirt_kickstart_allow_root_ssh }}
+
+%end