-
Notifications
You must be signed in to change notification settings - Fork 183
Fixes #29141 - CloudInit is compatible w/ Kickstart def user data #691
Fixes #29141 - CloudInit is compatible w/ Kickstart def user data #691
Conversation
@lzap, I heard you've got some experience with CloudInit, could you please review those changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that, ok.
2bff0b7
to
6e066ea
Compare
@lzap, done. Extracted into |
echo "updating system time" | ||
yum -y install ntpdate | ||
/usr/sbin/ntpdate -sub <%= host_param('ntp-server') || '0.fedora.pool.ntp.org' %> | ||
/usr/sbin/hwclock --systohc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thing once you on that. In the default kickstart we have this:
use_ntp = host_param_true?('use-ntp') || (is_fedora && os_major < 16) || (rhel_compatible && os_major <= 7)
<% if use_ntp -%>
ntp
-chrony
<% else -%>
chrony
-ntp
<% end -%>
Esssentially, on older systems we do install ntp but on modern ones we do default to chrony, unless user opts-into the traditional ntp. Can you respect the very same in the snippet? Copy the check over and install either ntp or chrony. I'd also enable start the service as well: systemctl enable --now service
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beware that ntpdate
will not work if chrony is installed, use chronyc -a makestep
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I don't like the fedora default pool, I'd probably just provide it an ntp-server if there is any, otherwise i'd keep the default server list that has been installed with the package.
6e066ea
to
44546d8
Compare
@lzap, updated. I've tried to address your comments. Is it better now? |
@lzap, ping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I haven't tested this end to end, will do during test week tho.
No description provided.