-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathks8.txt
104 lines (72 loc) · 2.21 KB
/
ks8.txt
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#version=DEVEL
# System authorization information
auth --useshadow --passalgo=sha512
# Install OS instead of upgrade
install
text
skipx
# Install from URI
#url --url=https://mirror.zetup.net/CentOS/8/BaseOS/x86_64/os/
url --url=http://mirror.centos.org/centos/8/BaseOS/x86_64/kickstart
# Reboot after install
reboot --eject
# Network configuration
network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
firewall --disable
# Console and i8s
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
# Root PW
rootpw --plaintext changeme
# Disable SELinux
selinux --disabled
reqpart
services --enabled="chronyd,sshd"
timezone Europe/Budapest --isUtc
logging --level=debug
clearpart --drives=sda,sdb --initlabel --all
zerombr
bootloader --append="crashkernel=auto" --location=mbr --driveorder=sda,sdb --boot-drive=sda
# Disk partitioning information
part biosboot --fstype=biosboot --size=2 --ondisk=sda
part biosboot --fstype=biosboot --size=2 --ondisk=sdb
part raid.12 --size 500 --ondisk sda
part raid.22 --size 500 --ondisk sdb
part raid.13 --size=500 --grow --ondisk=sda
part raid.23 --size=500 --grow --ondisk=sdb
raid /boot --fstype="ext3" --level=1 --device=md0 raid.12 raid.22
raid pv.11 --fstype="lvmpv" --level=1 --device=md1 raid.13 raid.23
volgroup vg00 --pesize=4096 pv.11
logvol swap --fstype="swap" --size=8000 --name=lv_swap --vgname=vg00
logvol / --fstype="ext4" --size=10000 --name=lv_root --vgname=vg00
#repo --name="EPEL" --baseurl=http://dl.fedoraproject.org/pub/epel/8/x86_64/
eula --agreed
#%pre --interpreter=/usr/bin/python
#cmdline = ''
#with open('/proc/cmdline', 'r') as myfile:
# cmdline = myfile.read()
#pieces = cmdline.split(' ')
#for piece in pieces:
# if 'ks=' in piece:
# KS_LOCATION = piece[ piece.rfind('ks=')+3 : piece.rfind('/') ]
#%end
%post # configure sudoers
echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/workstation # add sudo profiles for ansible and vagrant
sed -i "s/^[^#].*requiretty/#Defaults requiretty/" /etc/sudoers # disable requiretty setting
%end
%packages --ignoremissing --excludedocs
@core
@^minimal install
bc
git
epel-release
wget
net-tools
chrony
openssh-server
openssh-clients
yum-utils
%end
#vnc --password=password
skipx
firstboot --disabled