From cfa432c4ce4792a5b0994797fa7cfb70f8859c5f Mon Sep 17 00:00:00 2001 From: f Date: Sat, 3 Sep 2022 15:18:25 -0300 Subject: [PATCH] configure ntpsec --- config.yml | 1 + templates/etc/ntp.conf | 5 ----- templates/etc/ntp.conf.j2 | 3 +++ 3 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 templates/etc/ntp.conf create mode 100644 templates/etc/ntp.conf.j2 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