Fully Automated CentOS7 Install
-
Here is my kickstart file:
#version=DEVEL # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Use text mode install text # Only Use SDA ignoredisk --only-use=sda # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate network --hostname=localhost.localdomain # Root password rootpw --plaintext root # System timezone timezone America/New_York --isUtc # System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda autopart --type=lvm # Partition clearing information clearpart --none --initlabel # Reboot after installation reboot %packages @^minimal @core kexec-tools %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end
Save as ks.cfg
When you boot into the CentOS7 minimal CD press press TAB and erase what’s in there and type:
vmlinuz initrd=initrd.cfg ks=http://YOURDOMAIN/ks.cfg
-
Nice. Haven't used KS since I was at the bank. We built everything that way back then.
-
My next step is to setup the install via PXE.
-
By default the firewall is off. I am thinking about enabling it via the kickstart file and only allowing SSH? What do you guys think?
-
Good idea. Off by default is very bad.
-
-
@anonymous said:
@scottalanmiller said:
Good idea. Off by default is very bad.
Then why do they do that? =P
The CentOS 7 firewall is not off by default on a minimal install.