add kickstart config file
This commit is contained in:
parent
196c55ad53
commit
3b2a1e6e68
|
@ -0,0 +1,34 @@
|
||||||
|
network --bootproto=dhcp --device=ens33 --activate --hostname=changeme
|
||||||
|
network --bootproto=dhcp --device=ens35 --activate --hostname=changeme
|
||||||
|
firewall --enabled
|
||||||
|
reboot
|
||||||
|
url --url="ftp://172.16.33.20/pub/CENTOS8"
|
||||||
|
repo --name="salt" --baseurl="https://repo.saltproject.io/py3/redhat/8/x86_64/latest"
|
||||||
|
rootpw --plaintext Passw0rd
|
||||||
|
graphical
|
||||||
|
eula --agreed
|
||||||
|
firstboot --disable
|
||||||
|
keyboard us
|
||||||
|
lang en_US
|
||||||
|
selinux --permissive
|
||||||
|
logging --level=info
|
||||||
|
timezone Europe/Amsterdam
|
||||||
|
bootloader --location=mbr
|
||||||
|
clearpart --all --initlabel
|
||||||
|
part swap --asprimary --fstype="swap" --size=1024
|
||||||
|
part /boot --fstype ext4 --size=512
|
||||||
|
part pv.01 --size=1 --grow
|
||||||
|
volgroup rootvg01 pv.01
|
||||||
|
logvol / --fstype xfs --name=lv01 --vgname=rootvg01 --size=1 --grow
|
||||||
|
services --enabled="salt-minion"
|
||||||
|
|
||||||
|
%packages
|
||||||
|
@graphical-server-environment
|
||||||
|
net-tools
|
||||||
|
salt-minion
|
||||||
|
%end
|
||||||
|
%post
|
||||||
|
sed -i "s/changeme/CentOS-$(openssl rand -hex 4)/" /etc/hostname
|
||||||
|
curl -fsSL https://repo.saltproject.io/py3/redhat/8/x86_64/latest.repo | tee /etc/yum.repos.d/salt.repo
|
||||||
|
sed -i 's/#master: salt/master: 172.16.33.10/' /etc/salt/minion
|
||||||
|
%end
|
Reference in New Issue