auto-configure NTP in Kickstart?

Mogens Kjaer mk at crc.dk
Tue Jan 6 16:29:59 UTC 2009


Cameron Mura wrote:
>   I naively did the following in a ks file to
> modify ntp.conf, but that doesn't actually 'enable' ntp on the system:
>> cat >> /etc/ntp.conf <<EOF_ntpconfig
>> server ntp1.virginia.edu dynamic
>> server ntp2.virginia.edu dynamic
>> server ntp3.virginia.edu dynamic
>> EOF_ntpconfig

I have:

/sbin/chkconfig ntpd on
echo 'server 130.226.184.8' >/etc/ntp.conf
echo 'driftfile /var/lib/ntp/drift' >>/etc/ntp.conf
chmod 644 /etc/ntp.conf
echo ' ' >>/etc/ntp/ntpservers
echo '130.226.184.8' >>/etc/ntp/ntpservers
echo '130.226.184.8' >>/etc/ntp/step-tickers

in the %post section of the .ks file. Replace the IP numbers as needed.

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk




More information about the fedora-list mailing list