diff --git a/config.yml b/config.yml index e58d5b3..762c3b1 100644 --- a/config.yml +++ b/config.yml @@ -37,6 +37,7 @@ templates: - "/etc/sysctl.d/congestion.conf" - "/etc/sysctl.d/coredump.conf" - "/etc/docker/daemon.json" +- "/etc/ntp.conf" services: - runlevel: "sysinit" service: "devfs" diff --git a/templates/etc/ntp.conf b/templates/etc/ntp.conf deleted file mode 100644 index 5742a88..0000000 --- a/templates/etc/ntp.conf +++ /dev/null @@ -1,5 +0,0 @@ -pool pool.ntp.org -driftfile /var/lib/ntp/ntp.drift -restrict default kod limited nomodify nopeer noquery -restrict 127.0.0.1 -restrict ::1 diff --git a/templates/etc/ntp.conf.j2 b/templates/etc/ntp.conf.j2 new file mode 100644 index 0000000..3415167 --- /dev/null +++ b/templates/etc/ntp.conf.j2 @@ -0,0 +1,3 @@ +# https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d +server time.cloudflare.com nts iburst +driftfile /var/lib/ntp/ntp.drift