82 lines
2.6 KiB
INI
82 lines
2.6 KiB
INI
#version=DEVEL
|
|
install
|
|
text
|
|
cdrom
|
|
lang en_US.UTF-8
|
|
keyboard us
|
|
skipx
|
|
reboot
|
|
network --onboot yes --device eth0 --bootproto static --ip 192.168.199.38 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate
|
|
network --onboot yes --device eth1 --bootproto static --ip 192.168.199.39 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate
|
|
rootpw --iscrypted $6$mhXX4f4VoZQd17Zi$92QTGG0zjyPpybH/AeSEKZKELgh5a/gvJZUZDa3kxmbij.QKLHHCWXdBJOur.qxeq0EfARQf7bewzujFYRhsp.
|
|
firewall --disabled
|
|
authconfig --enableshadow --passalgo=sha512
|
|
selinux --disabled
|
|
timezone --utc America/Chicago
|
|
bootloader --location=mbr --driveorder=sda
|
|
zerombr
|
|
clearpart --all --initlabel --drives=sda
|
|
part /boot --fstype=ext4 --asprimary --size=200
|
|
part / --fstype=ext4 --asprimary --size=10240
|
|
part swap --asprimary --size=4608
|
|
|
|
%packages
|
|
-firmware*
|
|
-openfwwf*
|
|
nfs-utils
|
|
libICE
|
|
libSM
|
|
libXdmcp
|
|
libXt
|
|
libXtst
|
|
redhat-lsb
|
|
java-1.6.0-openjdk
|
|
%end
|
|
|
|
%post --log=/root/anaconda_post.log
|
|
ifdown eth0
|
|
ifup eth0
|
|
ping -c 4 google.com > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
echo "External network connection is available!" >> /root/anaconda_post.log
|
|
yum -y update
|
|
wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub
|
|
wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
|
|
rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub
|
|
rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub
|
|
else
|
|
echo "External network connection is not available. Skipping operating system updates & VMware RPM key download." >> /root/anaconda_post.log
|
|
|
|
fi
|
|
sed -i "s/\b quiet\b//g" /boot/grub/grub.conf
|
|
sed -i "s/\b rhgb\b//g" /boot/grub/grub.conf
|
|
echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth1
|
|
%end
|
|
|
|
%post
|
|
service rpcbind start
|
|
mkdir /mnt/tmp
|
|
mount -t nfs 192.168.199.7:/mnt/LABVOL/Build /mnt/tmp
|
|
if [ $? -eq 0 ]; then
|
|
echo "Mounted AutoLab Build share to /mnt/tmp" >> /root/anaconda_post.log
|
|
cp /mnt/tmp/Automate/vCloud/vcd51-install /etc/init.d
|
|
chmod 755 /etc/init.d/vcd51-install
|
|
cp /mnt/tmp/vCD_51/vmware-vcloud-director-5.1*.bin /root/
|
|
chmod +x /root/vmware-vcloud-director-5.1*.bin
|
|
echo "Copied vCloud 5.1 installation script and binary installer to /root/."
|
|
fi
|
|
sed -ie 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
|
|
chkconfig atd off
|
|
chkconfig cpuspeed off
|
|
chkconfig cups off
|
|
chkconfig ip6tables off
|
|
chkconfig iptables off
|
|
chkconfig kdump off
|
|
chkconfig lvm2-monitor off
|
|
chkconfig mdmonitor off
|
|
chkconfig ntpd on
|
|
chkconfig postfix off
|
|
chkconfig smartd off
|
|
chkconfig vcd51-install on
|
|
%end |