aboutsummaryrefslogtreecommitdiff
path: root/roles/libvirt/templates/kickstart/el10.ks
blob: 5a95014f4a8730972c584b2d02b84080e8dc1de6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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