[WIP] Optionally allow users to set NTP servers for the cluster#2213
[WIP] Optionally allow users to set NTP servers for the cluster#2213lblackstone wants to merge 1 commit intocoreos:masterfrom
Conversation
|
Can one of the admins verify this patch? |
1 similar comment
|
Can one of the admins verify this patch? |
|
@s-urbaniak @alexsomesan I've implemented this for OpenStack so far. If this approach looks good, I can add the other platforms as well. |
6a1462b to
5fd9bdc
Compare
|
We did some changes (#2082) to the testing process. Please rebase on to current master, so that the |
5fd9bdc to
a5d7924
Compare
65e93f1 to
3056438
Compare
|
@coreos/team-installer Could somebody take a look at this WIP and let me know if this approach is ok? |
|
@lblackstone thanks a lot for the contribution! /cc @robszumski for the product side of things |
|
I'd suggest to avoid installing the config file if the list is empty, as this just hardcodes the same default values but in a way that can't be changed in the future. |
modules/ignition/assets.tf
Outdated
| } | ||
|
|
||
| data "ignition_file" "ntp_dropin" { | ||
| path = "/etc/systemd/timesyncd.conf" |
There was a problem hiding this comment.
This should probably go in its own dropin (i.e. /etc/systemd/timesyncd.conf.d/10-tectonic-installer.conf) and be skipped if the terraform configuration value is not set by the user (to avoid bloating userdata and hardcoding defaults in config).
3056438 to
88780a8
Compare
|
Addressed @lucab comments. Drop-in file is now only installed if the user specifies NTP servers. |
|
I thought the installer was moving away from including this sort of configuration in favor of it moving into a cluster config that gets applied at runtime instead. |
NTP servers on Container Linux default to CoreOS time servers, which may not be accessible on private cluster deployments. Allow users to set a list of primary NTP servers with the CoreOS servers as the default fallback.
88780a8 to
09a541a
Compare
|
@crawford Do you have any further information on the direction you mentioned? Happy to revise as needed, but I hadn't seen any public-facing docs to that effect. /cc @s-urbaniak |
|
@lblackstone Unfortunately, I don't have any more info at the moment. This repo will be undergoing a pretty massive refactor over the next couple months (all driven by CoreOS-internal needs). Hopefully by the end of this work, this repo will feel a bit more like an open source project. |
|
#2747 finished out this work for the track-1 branch. Closing this PR, as that feature can be cherry-picked later if desired. |
NTP servers on Container Linux default to CoreOS time servers,
which may not be accessible on private cluster deployments.
Allow users to set a list of primary NTP servers with the CoreOS
servers as the default fallback.
Fixes #1866