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-registry.cfg
89 lines (70 loc) · 2.09 KB
/
centos-8-kickstart-registry.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
89
#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={SUPPORT_VIP} --gateway={GATEWAY_ROUTER_IP} --netmask={NETMASK} --nameserver={IDENTITY_VIP} --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_openstack
grow_fs
grub_update
### system profile
tuned-adm profile virtual-guest
#############
yum install -y python36 httpd
systemctl enable httpd
join_machine_to_domain {CENTOS_ADMIN_PWD_123456789012}
#setup repo server
rm -rf /etc/httpd/conf.d/ssl.conf
sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf
#Prep initial startup script
mv /tmp/init-registry.sh /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
###############################
###Close out cfg file
%end
eula --agreed
reboot --eject
#########