
# configure DNS
/bin/cp /root/resources/db.* /var/named/
/bin/cp /root/resources/named.conf /etc/
chkconfig named on
# cobbler preparation
/usr/sbin/semanage fcontext -a -t public_content_t "/var/lib/tftpboot/.*"
/usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/images/.*"
setsebool -P httpd_can_network_connect true
# update DNS resolution
/bin/cp /etc/resolv.conf /etc/resolv.conf.orig
/bin/cp /root/resources/resolv.conf /etc/resolv.conf
#prepared actions to be performed on net boot
/bin/cp /etc/rc.d/rc.local /etc/rc.d/rc.local.shipped
cat /root/resources/sat.rc.local.add >> /etc/rc.d/rc.local
) 2>&1 | tee /root/satprep.log
a) This script performs actions on the first reboot of the VM
sat.rc.local.add
# install the ssh expect scripts
date >> /var/log/rc.local.out 2>&1
/root/resources/instpyCmds.sh /root/resources >> /var/log/rc.local.out 2>&1
#install and prime the ricci access commands/library
yum -y --nogpgcheck localinstall /root/resources/riccilib-current.noarch.rpm >> /var/log/rc.local.out
2>&1
#source variables
if [[ -x varDefs.sh ]]
then
source varDefs.sh
elif [[ -x /root/varDefs.sh ]]
then
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]]
then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]]
then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
# eject cd
# install satellite software
www.redhat.com 50
Comentários a estes Manuais