Files
confdroid_ntp/templates/chrony.conf.erb

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2026-10-02 12:57:28 +02:00
################################################################################
### chrony.conf created by Puppet, manual changes will be overwritten ###
2026-10-02 13:32:06 +02:00
################################################################################
### original chrony.conf file can be found at https://3for.me/2t0an ###
################################################################################
2026-10-02 14:56:10 +02:00
<% if @fqdn == @cy_server_fqdn -%>
2026-10-02 14:53:12 +02:00
# This is a time server configuration file
2026-10-02 15:05:29 +02:00
# Use public servers from the pool.ntp.org project.
<% @cy_conf_servers.each do |this_server| -%>
pool <%= this_server %> iburst
# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp
# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift
# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1.0 3
2026-10-02 14:56:10 +02:00
<% end end -%>
2026-10-02 14:53:12 +02:00
2026-10-02 14:43:28 +02:00
<% if @fqdn != @cy_server_fqdn -%>
# This is a time client configuration file
2026-10-02 15:05:29 +02:00
server <%= @cy_server_fqdn %> iburst
# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp
# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift
# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1.0 3
2026-10-02 14:45:12 +02:00
<% end %>