Add NTP Server Configuration

This commit is contained in:
Samuel Lorch 2023-04-24 19:50:17 +02:00
parent 6f396b3833
commit afbfed5cb6
5 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,13 @@
pool pool.ntp.org iburst
driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
keyfile /etc/chrony.keys
ntsdumpdir /var/lib/chrony
leapsectz right/UTC
logdir /var/log/chrony
# Allowed Networks
{{- range $i, $server := .Service.NTPServers }}
allow {{ getInterfaceNetworkAddressCIDR $ $server.Interface }}
{{- end }}