Skip to content

Commit 8725bb8

Browse files
author
Ryan Coleman
committed
Merge pull request #19 from hakamadare/master
(#14497) Add tinker_panic option for ntpd
2 parents 8c9af68 + aa336b4 commit 8725bb8

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

templates/ntp.conf.debian.erb

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
22

3+
<% if @is_virtual -%>
4+
# Keep ntpd from panicking in the event of a large clock skew
5+
# when a VM guest is suspended and resumed.
6+
tinker panic 0
7+
8+
<% end -%>
39
driftfile /var/lib/ntp/ntp.drift
410

511

templates/ntp.conf.el.erb

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<% if @is_virtual -%>
2+
# Keep ntpd from panicking in the event of a large clock skew
3+
# when a VM guest is suspended and resumed.
4+
tinker panic 0
5+
6+
<% end -%>
17
# Permit time synchronization with our time source, but do not
28
# permit the source to query or modify the service on this system.
39
restrict default kod nomodify notrap nopeer noquery

templates/ntp.conf.freebsd.erb

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
# The option `maxpoll 9' is used to prevent PLL/FLL flipping on FreeBSD.
1919
#
2020
# Managed by puppet class { "ntp": servers => [ ... ] }
21+
<% if @is_virtual -%>
22+
23+
# Keep ntpd from panicking in the event of a large clock skew
24+
# when a VM guest is suspended and resumed.
25+
tinker panic 0
26+
27+
<% end -%>
2128
<% [servers_real].flatten.each do |server| -%>
2229
server <%= server %>
2330
<% end -%>

0 commit comments

Comments
 (0)