You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
59 lines
1.3 KiB
#platform=x86, AMD64, or Intel EM64T
|
|
#version=DEVEL
|
|
# Firewall configuration
|
|
network
|
|
network --bootproto dhcp
|
|
firewall --disabled
|
|
|
|
# Root password configuration
|
|
rootpw --plaintext PASSWORD
|
|
#url --url=https://mirrors.mit.edu/centos/7.9.2009/os/x86_64/
|
|
# Use graphical install
|
|
#graphical
|
|
|
|
# Firstboot configuration
|
|
firstboot disable
|
|
|
|
# System keyboard
|
|
keyboard us
|
|
|
|
# System language
|
|
lang en_US
|
|
|
|
# SELinux configuration
|
|
selinux disabled
|
|
|
|
# Installation logging level
|
|
logging level=info
|
|
|
|
# System timezone
|
|
timezone Asia/Shanghai
|
|
|
|
# System bootloader configuration
|
|
bootloader location=gpt
|
|
|
|
# Partition clearing information
|
|
clearpart --all --initlabel
|
|
|
|
# Disk partitioning information
|
|
part swap --asprimary --fstype="swap" --size=1024
|
|
part /boot --fstype xfs --size=200
|
|
part pv.01 --size=1 --grow
|
|
volgroup rootvg01 pv.01
|
|
logvol / --fstype xfs --name=lv01 --vgname=rootvg01 --size=1 --grow
|
|
|
|
# Reboot after installation
|
|
shutdown
|
|
%packages --ignoremissing
|
|
@core
|
|
%end
|
|
|
|
%post
|
|
# Add local DNS resolution
|
|
rm -rf /etc/yum.repos.d/*
|
|
curl https://gitea.beyourself.org.cn/newrain001/shell-project/raw/branch/master/os/kvm-repo.sh |repo=10.35.187.67 sh
|
|
yum install -y python3 python3-devel gcc
|
|
echo "JUMPSERVER_HOST jumpserver.server" >> /etc/hosts
|
|
pip3 install requests httpsig -i https://mirrors.aliyun.com/pypi/simple
|
|
%end
|
|
|
|
|