====== Cobbler ======

when handing over or signing the OS in the %post stage to other tools (chef, puppet ,spacewalk) you must make sure that the clocks on the OS **AND** hardware are synced and correct, in some cases the HW clock is not configured properly and indicate factory time.


To do so you can use the following snippet :
<code>

cat << NTP_EOF >> /etc/ntp/ntpd.server
<ntp host 1 FQDN >
<ntp host 2 FQDN >
NTP_EOF

ntpdate host1
ntpdate host2
</code>

  * for Redhat derivatives us  
<code>
chkconfig ntpd enable 
service ntpd start
</code>
  * For other Distro
<code>
service ntpd start
</code>

then do 

<code>hwclock --systohc </code>  
this will sync the hardware clock to the same time as the OS clock.




