summaryrefslogtreecommitdiff
path: root/templates/timesyncd.conf.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/timesyncd.conf.tmpl')
-rw-r--r--templates/timesyncd.conf.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/timesyncd.conf.tmpl b/templates/timesyncd.conf.tmpl
new file mode 100644
index 00000000..6b98301d
--- /dev/null
+++ b/templates/timesyncd.conf.tmpl
@@ -0,0 +1,8 @@
+## template:jinja
+# cloud-init generated file
+# See timesyncd.conf(5) for details.
+
+[Time]
+{% if servers or pools -%}
+NTP={% for host in servers|list + pools|list %}{{ host }} {% endfor -%}
+{% endif -%}