
fipscheck
imake
kexec-tools
libsane-hpaio
mesa-libGLU-devel
ntp
perl-XML-SAX
perl-XML-NamespaceSupport
python-imaging
python-dmidecode
pexpect
sg3_utils
sgpio
xorg-x11-utils
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
yum-utils
bind
%post
(
# set system time from server then set time to the hwclock
/usr/sbin/ntpdate -bu 10.16.255.2
hwclock --systohc
cat <<EOF>/etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict 10.16.136.0 mask 255.255.248.0
restrict 127.0.0.1
server 10.16.255.2
server 10.16.255.3
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
EOF
#update the hostname, BZ-593093
/bin/sed -ic "/HOSTNAME=/D" /etc/sysconfig/network
echo "HOSTNAME=$NAME" >> /etc/sysconfig/network
#configure the iptables
cat <<'EOF'> /etc/sysconfig/iptables
*nat
:PREROUTING ACCEPT [32:4811]
:POSTROUTING ACCEPT [328:24055]
:OUTPUT ACCEPT [314:20588]
-A POSTROUTING -s 192.168.122.0/255.255.255.0 -d ! 192.168.122.0/255.255.255.0 -j MASQUERADE
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [23214:3084596]
www.redhat.com 80
Komentáře k této Příručce