aboutsummaryrefslogtreecommitdiff
path: root/roles/libvirt/templates/kickstart/f38.ks
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2023-05-30 17:18:32 -0400
committerspmfox <spmfox@foxwd.com>2023-05-30 17:18:32 -0400
commit2084b4bae22557fa4a4d8dbe50662a730252cfb9 (patch)
tree751ec050ab95ea8b4dd78db20170423f4885b605 /roles/libvirt/templates/kickstart/f38.ks
parentdc5c87e726d74b3eae2280ae870f81b817599ea5 (diff)
adding support for fedora
Diffstat (limited to 'roles/libvirt/templates/kickstart/f38.ks')
-rw-r--r--roles/libvirt/templates/kickstart/f38.ks50
1 files changed, 50 insertions, 0 deletions
diff --git a/roles/libvirt/templates/kickstart/f38.ks b/roles/libvirt/templates/kickstart/f38.ks
new file mode 100644
index 0000000..2264720
--- /dev/null
+++ b/roles/libvirt/templates/kickstart/f38.ks
@@ -0,0 +1,50 @@
+#version=F38
+text
+reboot
+
+# Keyboard layouts
+keyboard --vckeymap=us --xlayouts='us'
+# System language
+lang en_US.UTF-8
+
+# Use CDROM installation media
+cdrom
+
+%packages
+@^server-product-environment
+
+%end
+
+# Network information
+network --bootproto=dhcp --device=enp1s0 --noipv6 --activate
+network --hostname={{ libvirt_kickstart_hostname }}
+
+# Run the Setup Agent on first boot
+firstboot --enable
+
+# Generated using Blivet version 3.7.1
+ignoredisk --only-use=vda
+autopart
+# Partition clearing information
+clearpart --none --initlabel
+
+# System timezone
+timezone {{ libvirt_kickstart_timezone }} --isUtc
+
+# Root password
+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
+
+### set permissions
+chmod 0600 /root/.ssh/authorized_keys
+
+### fix up selinux context
+restorecon -R /root/.ssh/
+
+%end