<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="sans-serif">Hi Harry, Bryan, & Jarle,<br>
<br>
Thanks a lot for the useful tips and suggestions -- I've got my
kickstart / ntp problem fixed now; it was simply my own
misunderstanding in thinking that the 'd' in the 'ntpd' init process
meant purely server behavior (rather than ntp client too) and therefore
not considering activating this service.<br>
<br>
All the best,<br>
Cameron<br>
<br>
</font><br>
=== <a class="moz-txt-link-abbreviated" href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.com</a> wrote (on 01/06/2009 12:00 PM):
===
<blockquote cite="mid:20090106170022.5896E619C09@hormel.redhat.com"
 type="cite">
  <pre wrap="">Today's Topics:

   1. auto-configure NTP in Kickstart? (Cameron Mura)
   2. Re: auto-configure NTP in Kickstart? (Harry Hoffman)
   3. Re: auto-configure NTP in Kickstart? (Bryan Schneiders)
   4. Re: auto-configure NTP in Kickstart? (Jarle Bj?rgeengen)
  </pre>
  <br>
  <hr size="4" width="90%"><br>
  <table class="header-part1" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Subject:
        </div>
auto-configure NTP in Kickstart?</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">From: </div>
Cameron Mura <a class="moz-txt-link-rfc2396E" href="mailto:cmura@virginia.edu"><cmura@virginia.edu></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Date: </div>
Tue, 06 Jan 2009 10:48:39 -0500</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a>, Fedora Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:fedora-list@redhat.com"><fedora-list@redhat.com></a>, <a class="moz-txt-link-abbreviated" href="mailto:uvalug@virginia.edu">uvalug@virginia.edu</a></td>
      </tr>
    </tbody>
  </table>
  <table class="header-part2" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a>, Fedora Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:fedora-list@redhat.com"><fedora-list@redhat.com></a>, <a class="moz-txt-link-abbreviated" href="mailto:uvalug@virginia.edu">uvalug@virginia.edu</a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">CC: </div>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
  <font face="sans-serif">Hi all,<br>
  <br>
Does anyone know how to setup NTP info via kickstart ?  More
specifically, I'd like to do the following on Fedora 10 systems via the
kickstart mechanism:<br>
  <br>
1) Specify NTP servers (e.g., ntp1.virginia.edu, ntp2.virginia.edu, ...)<br>
  <br>
2) Enable / activate NTP -- I.e., What one would get by running
'system-config-time' and clicking the "Enable Network Time Protocol"
box.<br>
  <br>
I know this stuff can set manually, post-installation, via the </font><font
 face="sans-serif">system-config-time route, and that it also can be
setup immediately after a kickstart-based install by setting "firstboot
--enable" to run the Setup Agent upon first reboot (...and then
manually entering the info at that screen.)   But seems as though this
could be done at the kickstart level ??<br>
  <br>
I couldn't find anything on ntp-in-kickstart in the Anaconda Kickstart
reference at <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://fedoraproject.org/wiki/Anaconda/Kickstart">http://fedoraproject.org/wiki/Anaconda/Kickstart</a>
or by
searching around the web.  I naively did the following in a ks file to
modify ntp.conf, but that doesn't actually 'enable' ntp on the system:<br>
  </font>
  <blockquote type="cite"><tt>cat >> /etc/ntp.conf
<<EOF_ntpconfig<br>
server ntp1.virginia.edu dynamic<br>
server ntp2.virginia.edu dynamic<br>
server ntp3.virginia.edu dynamic<br>
EOF_ntpconfig<br>
    </tt></blockquote>
  <font face="sans-serif">Any tips (or pointers to possible advice)
would
be most sincerely appreciated...<br>
  <br>
Cameron<br>
  </font>
  <br>
  <hr size="4" width="90%"><br>
  <table class="header-part1" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Subject:
        </div>
Re: auto-configure NTP in Kickstart?</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">From: </div>
Harry Hoffman <a class="moz-txt-link-rfc2396E" href="mailto:hhoffman@ip-solutions.net"><hhoffman@ip-solutions.net></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Date: </div>
Tue, 06 Jan 2009 11:01:40 -0500</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:cmura@virginia.edu">cmura@virginia.edu</a>, Discussion list about Kickstart
<a class="moz-txt-link-rfc2396E" href="mailto:kickstart-list@redhat.com"><kickstart-list@redhat.com></a></td>
      </tr>
    </tbody>
  </table>
  <table class="header-part2" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:cmura@virginia.edu">cmura@virginia.edu</a>, Discussion list about Kickstart
<a class="moz-txt-link-rfc2396E" href="mailto:kickstart-list@redhat.com"><kickstart-list@redhat.com></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">CC: </div>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
  <pre wrap="">1) perl -p -i -e 's/0.fedora.pool.ntp.org/NTP_SERVER_0/' /etc/ntp.conf
   perl -p -i -e 's/1.fedora.pool.ntp.org/NTP_SERVER_1/' /etc/ntp.conf
   perl -p -i -e 's/2.fedora.pool.ntp.org/NTP_SERVER_2/' /etc/ntp.conf
(the above is if your already chrooted in kickstart)

2) chkconfig ntp on



On Tue, 2009-01-06 at 10:48 -0500, Cameron Mura wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi all,

Does anyone know how to setup NTP info via kickstart ?  More
specifically, I'd like to do the following on Fedora 10 systems via
the kickstart mechanism:

1) Specify NTP servers (e.g., ntp1.virginia.edu,
ntp2.virginia.edu, ...)

2) Enable / activate NTP -- I.e., What one would get by running
'system-config-time' and clicking the "Enable Network Time Protocol"
box.

I know this stuff can set manually, post-installation, via the
system-config-time route, and that it also can be setup immediately
after a kickstart-based install by setting "firstboot --enable" to run
the Setup Agent upon first reboot (...and then manually entering the
info at that screen.)   But seems as though this could be done at the
kickstart level ??

I couldn't find anything on ntp-in-kickstart in the Anaconda Kickstart
reference at <a class="moz-txt-link-freetext" href="http://fedoraproject.org/wiki/Anaconda/Kickstart">http://fedoraproject.org/wiki/Anaconda/Kickstart</a> or by
searching around the web.  I naively did the following in a ks file to
modify ntp.conf, but that doesn't actually 'enable' ntp on the system:
    </pre>
    <blockquote type="cite">
      <pre wrap="">cat >> /etc/ntp.conf <<EOF_ntpconfig
server ntp1.virginia.edu dynamic
server ntp2.virginia.edu dynamic
server ntp3.virginia.edu dynamic
EOF_ntpconfig
      </pre>
    </blockquote>
    <pre wrap="">Any tips (or pointers to possible advice) would be most sincerely
appreciated...

Cameron
_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
  <br>
  <hr size="4" width="90%"><br>
  <table class="header-part1" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Subject:
        </div>
Re: auto-configure NTP in Kickstart?</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">From: </div>
Bryan Schneiders <a class="moz-txt-link-rfc2396E" href="mailto:bschneiders@woti.com"><bschneiders@woti.com></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Date: </div>
Tue, 06 Jan 2009 11:02:16 -0500</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:cmura@virginia.edu">cmura@virginia.edu</a>, Discussion list about Kickstart
<a class="moz-txt-link-rfc2396E" href="mailto:kickstart-list@redhat.com"><kickstart-list@redhat.com></a></td>
      </tr>
    </tbody>
  </table>
  <table class="header-part2" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:cmura@virginia.edu">cmura@virginia.edu</a>, Discussion list about Kickstart
<a class="moz-txt-link-rfc2396E" href="mailto:kickstart-list@redhat.com"><kickstart-list@redhat.com></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">CC: </div>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
Our machines get NTP server information from DHCP, so I just comment
out the default servers in the post section with sed:
  <br>
  <br>
sed -i.orig -e "s/\(server [0-9].fedora.pool.ntp.org dynamic\)/#\1/"
/etc/ntp.conf
  <br>
  <br>
I believe you can enable ntp with the "services" command in the top of
the kickstart file.
  <br>
  <br>
services --enabled=ntpd
  <br>
  <br>
Bryan Schneiders
  <br>
  <br>
Cameron Mura wrote:
  <br>
  <blockquote type="cite">Hi all,
    <br>
    <br>
Does anyone know how to setup NTP info via kickstart ?  More
specifically, I'd like to do the following on Fedora 10 systems via the
kickstart mechanism:
    <br>
    <br>
1) Specify NTP servers (e.g., ntp1.virginia.edu, ntp2.virginia.edu,
...)
    <br>
    <br>
2) Enable / activate NTP -- I.e., What one would get by running
'system-config-time' and clicking the "Enable Network Time Protocol"
box.
    <br>
    <br>
I know this stuff can set manually, post-installation, via the
system-config-time route, and that it also can be setup immediately
after a kickstart-based install by setting "firstboot --enable" to run
the Setup Agent upon first reboot (...and then manually entering the
info at that screen.)   But seems as though this could be done at the
kickstart level ??
    <br>
    <br>
I couldn't find anything on ntp-in-kickstart in the Anaconda Kickstart
reference at <a class="moz-txt-link-freetext" href="http://fedoraproject.org/wiki/Anaconda/Kickstart">http://fedoraproject.org/wiki/Anaconda/Kickstart</a> or by
searching around the web.  I naively did the following in a ks file to
modify ntp.conf, but that doesn't actually 'enable' ntp on the system:
    <br>
    <blockquote type="cite">cat >> /etc/ntp.conf
<<EOF_ntpconfig
      <br>
server ntp1.virginia.edu dynamic
      <br>
server ntp2.virginia.edu dynamic
      <br>
server ntp3.virginia.edu dynamic
      <br>
EOF_ntpconfig
      <br>
    </blockquote>
Any tips (or pointers to possible advice) would be most sincerely
appreciated...
    <br>
    <br>
Cameron
    <br>
    <br>
    <br>
------------------------------------------------------------------------
    <br>
    <br>
_______________________________________________
    <br>
Kickstart-list mailing list
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>
    <br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a>
    <br>
  </blockquote>
  <br>
  <br>
  <br>
  <hr size="4" width="90%"><br>
  <table class="header-part1" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Subject:
        </div>
Re: auto-configure NTP in Kickstart?</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">From: </div>
Jarle Bjørgeengen <a class="moz-txt-link-rfc2396E" href="mailto:jarle@bjorgeengen.net"><jarle@bjorgeengen.net></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">Date: </div>
Tue, 6 Jan 2009 17:06:26 +0100</td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:cmura@virginia.edu">cmura@virginia.edu</a>, Discussion list about Kickstart
<a class="moz-txt-link-rfc2396E" href="mailto:kickstart-list@redhat.com"><kickstart-list@redhat.com></a></td>
      </tr>
    </tbody>
  </table>
  <table class="header-part2" border="0" cellpadding="0" cellspacing="0"
 width="100%">
    <tbody>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">To: </div>
<a class="moz-txt-link-abbreviated" href="mailto:cmura@virginia.edu">cmura@virginia.edu</a>, Discussion list about Kickstart
<a class="moz-txt-link-rfc2396E" href="mailto:kickstart-list@redhat.com"><kickstart-list@redhat.com></a></td>
      </tr>
      <tr>
        <td>
        <div class="headerdisplayname" style="display: inline;">CC: </div>
Fedora Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:fedora-list@redhat.com"><fedora-list@redhat.com></a>, <a class="moz-txt-link-abbreviated" href="mailto:uvalug@virginia.edu">uvalug@virginia.edu</a></td>
      </tr>
    </tbody>
  </table>
  <br>
  <br>
On Jan 6, 2009, at 4:48 , Cameron Mura wrote:
  <br>
  <br>
  <blockquote type="cite">Hi all,
    <br>
    <br>
Does anyone know how to setup NTP info via kickstart ?  More
specifically, I'd like to do the following on Fedora 10 systems via the
kickstart mechanism:
    <br>
    <br>
1) Specify NTP servers (e.g., ntp1.virginia.edu, ntp2.virginia.edu,
...)
    <br>
    <br>
  </blockquote>
  <br>
Just use
  <br>
  <br>
cat << EOF > /etc/ntp.conf
  <br>
whatever
  <br>
you
  <br>
want
  <br>
to be in
  <br>
ntp.conf
  <br>
EOF
  <br>
  <br>
in your %post section
  <br>
  <br>
  <blockquote type="cite">2) Enable / activate NTP -- I.e., What one
would get by running 'system-config-time' and clicking the "Enable
Network Time Protocol" box.
    <br>
    <br>
  </blockquote>
  <br>
chkconfig ntp on
  <br>
  <br>
in the %post
  <br>
  <br>
I also recommend man chkconfig
  <br>
  <br>
  <blockquote type="cite">I know this stuff can set manually,
post-installation, via the system-config-time route, and that it also
can be setup immediately after a kickstart-based install by setting
"firstboot --enable" to run the Setup Agent upon first reboot (...and
then manually entering the info at that screen.)   But seems as though
this could be done at the kickstart level ??
    <br>
    <br>
I couldn't find anything on ntp-in-kickstart in the Anaconda Kickstart
reference at <a class="moz-txt-link-freetext" href="http://fedoraproject.org/wiki/Anaconda/Kickstart">http://fedoraproject.org/wiki/Anaconda/Kickstart</a> or by
searching around the web.  I naively did the following in a ks file to
modify ntp.conf, but that doesn't actually 'enable' ntp on the system:
    <br>
    <blockquote type="cite">cat >> /etc/ntp.conf
<<EOF_ntpconfig
      <br>
server ntp1.virginia.edu dynamic
      <br>
server ntp2.virginia.edu dynamic
      <br>
server ntp3.virginia.edu dynamic
      <br>
EOF_ntpconfig
      <br>
    </blockquote>
  </blockquote>
  <br>
Ah, so you have already the answer to Q1 ;-)
  <br>
  <br>
  <blockquote type="cite"><br>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a></pre>
</blockquote>
<br>
</body>
</html>