Re: auto-configure NTP in Kickstart?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx Homepage: http://www.crc.dk

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux