From 2b103bffcc786231f99cd4b2c1dad4325e7ee7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.broucquart@synchrotron-soleil.fr> Date: Thu, 22 Feb 2024 10:22:03 +0100 Subject: [PATCH] Add configuration of NTP * default to one server: 'ntp' --- recipes-conf/ntp/files/ntp.conf | 15 +++++++++++++++ recipes-conf/ntp/ntp_%.bbappend | 1 + 2 files changed, 16 insertions(+) create mode 100644 recipes-conf/ntp/files/ntp.conf create mode 100644 recipes-conf/ntp/ntp_%.bbappend diff --git a/recipes-conf/ntp/files/ntp.conf b/recipes-conf/ntp/files/ntp.conf new file mode 100644 index 0000000..2ce7a50 --- /dev/null +++ b/recipes-conf/ntp/files/ntp.conf @@ -0,0 +1,15 @@ +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + +driftfile /var/lib/ntp/ntp.drift + +# You do need to talk to an NTP server or two (or three). +server ntp + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: <http://www.pool.ntp.org/join.html> +#server 0.debian.pool.ntp.org iburst +#server 1.debian.pool.ntp.org iburst +#server 2.debian.pool.ntp.org iburst +#server 3.debian.pool.ntp.org iburst + diff --git a/recipes-conf/ntp/ntp_%.bbappend b/recipes-conf/ntp/ntp_%.bbappend new file mode 100644 index 0000000..81fe7b7 --- /dev/null +++ b/recipes-conf/ntp/ntp_%.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -- GitLab