Here I have written an article to automate a customized DVD installation using kickstart file
How to create customized bootable boot ISO image in RHEL/CentOS 7
Now suppose in the same DVD installation you want the installation to halt and prompt for network.
This can be done using the %pre and %post installation scripts from the kickstart file.
# Network Information
# Create a %pre section as below
exec < /dev/tty6 > /dev/tty6 2> /dev/tty6
read -p "Enter INS hostname : " HOSTNAME
read -p "Enter IP Address : " IPADDR
read -p "Enter NetMask : " NETMASK
read -p "Enter Gateway : " GATEWAY
echo "network --bootproto=static --hostname=$HOSTNAME --device=eth0 --gateway=$GATEWAY --ip=$IPADDR --netmask=$NETMASK --noipv6 --nodns --onboot=on --activate" > /tmp/network.ks
exec < /dev/tty1 > /dev/tty1 2> /dev/tty1
Here we are halting the automated installation, switching to terminal 6 and prompting user for hostname and network details and the same is populated into "/tmp/network.ks"
which is added as in the ks.cfg
so kickstart will collect this input and store it in the ks.cfg. Once ks.cfg gets all the needed information we have to again switch back the console to tty1 where the actual installation was happening so we do it using the last two lines before %end.
I have tested these steps in Red Hat 6 and 7 and seems to work very well.