fixed configuration of ntp server

This commit is contained in:
Marcel Straub
2025-09-03 19:22:14 +02:00
parent f791531e1d
commit 582395275a
2 changed files with 4 additions and 3 deletions

View File

@@ -28,10 +28,10 @@ machine:
network:
hostname: ${hostname}
%{if length(ntp_servers) > 0 }
time:
servers:
time:
servers:
%{ for addr in ntp_servers ~}
- ${addr}
- ${addr}
%{ endfor ~}
%{endif}
sysctls:

View File

@@ -42,6 +42,7 @@ variable "talos_cluster_config" {
node_network_vlan = optional(number)
http_proxy = optional(string)
no_proxy = optional(string)
ntp_servers = optional(list(string), [])
extra_manifests = optional(list(string), [])
kubelet = optional(string, "")
api_server = optional(string)