-
Notifications
You must be signed in to change notification settings - Fork 15
/
full_ks.cfg
88 lines (70 loc) · 2.35 KB
/
full_ks.cfg
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Choosing mode (graphical|text|cmdline [--non-interactive])
text
# Use network installation
url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-36&arch=x86_64"
# Initial Setup Agent on first boot
firstboot --disabled
# System language
lang en_US.UTF-8
# Keyboard layout
keyboard --vckeymap="us" --xlayouts="us"
# System timezone
timezone UTC --utc
# Network information
network --bootproto="dhcp" --device="link" --onboot="on"
network --hostname="gerri.local"
# Root password
rootpw --lock
# User password
user --name="admin" --groups="wheel" --gecos="admin" --iscrypted --password="$6$vWz07y0wUxdXATcW$Xc.Fi..Pmv7mNkSFHqYh.BYXPrC3GUuRF67/Hh25GiaNtqLnfgdVveH9uXiZWHFwN7JmvyxKaoHy.3waoRL6O."
user --name="dschier" --groups="wheel" --gecos="Daniel Schier" --iscrypted --password="$6$0HUtT/7YOAag1muG$BxXxOOfDv49DTaqipdKXvwBEILLbf8hKYIyMi6pezE5X2ynwyh3vRJSzFJYh3vnCOx05iR5NC3ddvLaUYvceB."
# Firewall configuration
firewall --enabled --service="ssh,cockpit"
# SELinux
selinux --enforcing
# Partitioning
## Clearing
zerombr
clearpart --all --initlabel --disklabel="gpt"
## System Disk
part /boot/efi --fstype="efi" --size="600" --ondisk="nvme0n1"
part /boot --fstype="xfs" --size="1024" --ondisk="nvme0n1"
part pv.10 --fstype="lvmpv" --size="61000" --ondisk="nvme0n1" --grow
volgroup vg_system pv.10
logvol / --fstype="xfs" --size="50000" --name="root" --vgname="vg_system"
logvol /var --fstype="xfs" --size="5000" --name="var" --vgname="vg_system"
logvol /var/log --fstype="xfs" --size="5000" --name="var_log" --vgname="vg_system"
## Data Disk
part pv.20 --fstype="lvmpv" --size="210000" --ondisk="sda" --grow
volgroup vg_data pv.20
logvol /var/lib/libvirt --fstype="xfs" --size="100000" --name="var_lib_libvirt" --vgname="vg_data"
logvol /var/lib/containers --fstype="xfs" --size="100000" --name="var_lib_containers" --vgname="vg_data"
# Packages
%packages --retries="5" --timeout="20"
@core
ansible
audit
bash
bash-completion
cockpit
cockpit-kdump
cockpit-pcp
cockpit-storaged
curl
pcp
tmux
tuned
vim
wget
%end
# Services
services --enabled="cockpit.socket,sshd.service,tuned.service"
# Reboot the system after installation.
reboot
# Enable kdump
%addon com_redhat_kdump --enable --reserve-mb="auto"
%end
%pre
%end
%post
%end