forked from puppetlabs/puppetlabs-ntp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathntp.conf.gentoo.erb
86 lines (69 loc) · 2.33 KB
/
ntp.conf.gentoo.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# NOTES:
# DHCP clients can append or replace NTP configuration files.
# You should consult your DHCP client documentation about its
# default behaviour and how to change it.
# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server ntp.example.tld iburst
# Common pool for random people
#server pool.ntp.org
# Managed by puppet class { "ntp": servers => [ ... ] }
<% [servers_real].flatten.each do |server| -%>
server <%= server %>
<% end -%>
<% if @is_virtual == "true" -%>
# Keep ntpd from panicking in the event of a large clock skew
# when a VM guest is suspended and resumed.
tinker panic 0
<% end -%>
##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# http://www.pool.ntp.org/#use
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
##
# you should not need to modify the following paths
driftfile /var/lib/ntp/ntp.drift
#server ntplocal.example.com prefer
#server timeserver.example.org
<% if @restrict -%>
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict -4 default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
<% end -%>
# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap
<% if @broadcast != 'UNSET' -%>
<% [broadcast].flatten.each do |to| -%>
broadcast <%= to %>
<% end -%>
<% end -%>
<% if @broadcastclient -%>
broadcastclient
<% end -%>
<% if @multicastclient != 'UNSET' -%>
<% [multicastclient].flatten.each do |to| -%>
multicastclient <%= to %>
<% end -%>
<% end -%>
<% if @manycastserver != 'UNSET' -%>
<% [manycastserver].flatten.each do |to| -%>
manycastserver <%= to %>
<% end -%>
<% end -%>
<% if @manycastclient != 'UNSET' -%>
<% [manycastclient].flatten.each do |to| -%>
manycastclient <%= to %>
<% end -%>
<% end -%>