summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.archlinux.erb
diff options
context:
space:
mode:
authorMatt Rogers <mattrogers@sbcglobal.net>2013-01-17 22:57:17 -0600
committerJeff McCune <jeff@puppetlabs.com>2013-02-25 15:27:38 -0800
commit7d6776868eb226bd85372cc1d62c3779b673d25c (patch)
tree4464659fab4d779efb51eba206d20d9ecf47f4c9 /templates/ntp.conf.archlinux.erb
parent346d9053ba3e4bcc77de2fad6b6eb9665554741a (diff)
Add support for Arch Linux
Add test for package name and presence Fix bad package name for Arch Linux Fix missing comment in config template
Diffstat (limited to 'templates/ntp.conf.archlinux.erb')
-rw-r--r--templates/ntp.conf.archlinux.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/ntp.conf.archlinux.erb b/templates/ntp.conf.archlinux.erb
new file mode 100644
index 0000000..78494e1
--- /dev/null
+++ b/templates/ntp.conf.archlinux.erb
@@ -0,0 +1,24 @@
+# With the default settings below, ntpd will only synchronize your clock.
+#
+# For details, see:
+# - the ntp.conf man page
+# - http://support.ntp.org/bin/view/Support/GettingStarted
+# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
+
+# Associate to public NTP pool servers; see http://www.pool.ntp.org/
+<% [servers_real].flatten.each do |server| -%>
+server <%= server %>
+<% end -%>
+
+<% if @restrict -%>
+# Only allow read-only access from localhost
+restrict default noquery nopeer
+restrict 127.0.0.1
+restrict ::1
+<% end -%>
+
+# Location of drift file
+driftfile /var/lib/ntp/ntp.drift
+
+# NOTE: If you run dhcpcd and have lines like 'restrict' and 'fudge' appearing
+# here, be sure to add '-Y -N' to the dhcpcd_ethX variables in /etc/conf.d/net