X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsystemdtimesyncd%2Ftemplates%2Ftimesyncd.conf.erb;fp=modules%2Fsystemdtimesyncd%2Ftemplates%2Ftimesyncd.conf.erb;h=c5d41b6ba228aad15e873672104bf36e24b6f2c1;hb=0faf9685026413c4b14bc2baa512b27f51b3d65d;hp=0000000000000000000000000000000000000000;hpb=f7076c9c465c463a9aa82f33f6af3430b3bedcbe;p=mirror%2Fdsa-puppet.git diff --git a/modules/systemdtimesyncd/templates/timesyncd.conf.erb b/modules/systemdtimesyncd/templates/timesyncd.conf.erb new file mode 100644 index 000000000..c5d41b6ba --- /dev/null +++ b/modules/systemdtimesyncd/templates/timesyncd.conf.erb @@ -0,0 +1,25 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# See timesyncd.conf(5) for details + +[Time] +#Servers=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org +<%= + servers = [] + localtimeservers.each do |node| + scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |addr| + servers << addr + end + end + "Servers="+servers.join(",") +%>