Feature #24290
closedUse chronyd instead of ntp in provisioning templates on RHEL systems
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1601602
Description of problem: In the current default provisioning templates there is a step to do an initial time sync using ntpdate:
```
#update local time
echo "updating system time"
/usr/sbin/ntpdate -sub <%= host_param('ntp-server') || '0.fedora.pool.ntp.org' %>
/usr/sbin/hwclock --systohc
```
In order for this to work the ntp package is also installed in the %packages system since is not install in rhel by default.
From my understanding this line is just to do a quick initial sync. chronyd has an option to do this [1].
Most of our docs are (or are being updated to) prefer chrony [2].
So rather then install the ntp package to just use ntpdate once, we should probably consider using the 'chronyd -q' option.
[1] https://chrony.tuxfamily.org/faq.html#_does_code_chronyd_code_have_an_ntpdate_mode
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1589712