This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos-8-kickstart-identity.cfg
84 lines (66 loc) · 1.99 KB
/
centos-8-kickstart-identity.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
#version=RHEL8
ignoredisk --only-use=vda
# Partition clearing information
clearpart --all --initlabel
# Use graphical install
text
# Use CDROM installation media
cdrom
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information !!! Docker does NOT work with IPv6, DO NOT ENABLE !!!!!
network --bootproto=static --device=enp1s0 --onboot=yes --activate --noipv6 --ip={IDENTITY_VIP} --gateway={GATEWAY_ROUTER_IP} --netmask={NETMASK} --nameserver={GATEWAY_ROUTER_IP} --hostname={HOST}
# Root password
rootpw {GENERATED_PWD}
# Run the Setup Agent on first boot
firstboot --enable
# Do not configure the X Window System
skipx
# System services
services --enabled="chronyd" --enabled="qemu-guest-agent"
timezone UTC --isUtc
# System bootloader configuration
bootloader --location=mbr --boot-drive=vda
autopart --type=lvm
zerombr
%packages
%include /mnt/install/repo/ks_configs/packages.cfg
%end
%addon com_redhat_kdump --disable
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
%post --nochroot
cp /mnt/install/repo/embedded/* /mnt/sysroot/tmp
%include /mnt/install/repo/ks_configs/create-local-repo.cfg
%include /mnt/install/repo/ks_configs/configure-local-repo.cfg
cp /tmp/*.log /mnt/sysroot/var/log
%end
%post
exec 1>/var/log/init-install.log 2>&1
source /tmp/vm_functions.sh
sed -i 's/^.*swap.*$/#&/' /etc/fstab
swapoff -a
systemctl mask firewalld
install_packages_identity
grow_fs
grub_update
### system profile
tuned-adm profile virtual-guest
#############
#Disable selinux (or do it in ks)
runuser -l root -c "sed -i 's/\(SELINUX\=\).*/\1disabled/' /etc/selinux/config"
#Prep initial startup script
mv /tmp/init-identity.sh /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
###############################
###Close out cfg file
%end
eula --agreed
reboot --eject
#########