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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
# ntp.conf: Managed by puppet.
#
<% if $ntp::_tinker and ($ntp::_panic or $ntp::stepout) {-%>
# Enable next tinker options:
# panic - keep ntpd from panicking in the event of a large clock skew
# when a VM guest is suspended and resumed;
# stepout - allow ntpd change offset faster
tinker<% if $ntp::_panic { %> panic <%= $ntp::_panic %><% } %><%if $ntp::stepout { %> stepout <%=$ntp::stepout %><% } %>
<% } -%>
<%# -%>
<% if $ntp::disable_monitor {-%>
disable monitor
<% } -%>
statsdir <%= $ntp::statsdir %>
<% unless $ntp::statistics.empty {-%>
# Build requested statistics files
statistics <%= $ntp::statistics.join(' ') %>
<% $ntp::statistics.each |$statistic| {-%>
filegen <%= $statistic %> file <%= $statistic %> type day enable
<% } -%>
<% } -%>
<% if $ntp::disable_auth {-%>
disable auth
<% } -%>
<% if $ntp::disable_kernel {-%>
disable kernel
<% } -%>
<% if $ntp::enable_mode7 {-%>
enable mode7
<% } -%>
<%# -%>
<% unless $ntp::restrict.empty {-%>
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
<% $ntp::restrict.each |$restrict| {-%>
restrict <%= $restrict %>
<% } -%>
<% } -%>
<%# -%>
<% unless $ntp::interfaces.empty {-%>
<% if $ntp::interfaces_ignore.empty {-%>
# Ignore wildcard interface and only listen on the following specified
# interfaces
interface ignore wildcard
<% } else {-%>
<% $ntp::interfaces_ignore.each |$interface| {-%>
interface ignore <%= $interface %>
<% } -%>
<% } -%>
<% $ntp::interfaces.each |$interface| {-%>
interface listen <%= $interface %>
<% } -%>
<% } -%>
<%# -%>
<% if $ntp::broadcastclient {-%>
broadcastclient
<% } -%>
# Set up servers for ntpd with next options:
# server - IP address or DNS name of upstream NTP server
# iburst - allow send sync packages faster if upstream unavailable
# prefer - select preferrable server
# minpoll - set minimal update frequency
# maxpoll - set maximal update frequency
# noselect - do not sync with this server
<% $ntp::servers.each |$server| {-%>
server <%= $server %><% if $ntp::iburst_enable == true {%> iburst<% } %><% if ($ntp::preferred_servers).member($server) { %> prefer<% } %><% if $ntp::minpoll { %> minpoll <%= $ntp::minpoll %><% } %><% if $ntp::maxpoll { %> maxpoll <%= $ntp::maxpoll %><% } %><% if ($ntp::noselect_servers).member($server) { %> noselect<% } %>
<% } -%>
<%# -%>
<% if $ntp::udlc {-%>
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum <%= $ntp::udlc_stratum %>
restrict 127.127.1.0
<% } -%>
# Driftfile.
driftfile <%= $ntp::driftfile %>
<%# -%>
<% if $ntp::logfile {-%>
# Logfile
logfile <%= $ntp::logfile %>
<% } -%>
<%# -%>
<% if $ntp::ntpsigndsocket {-%>
# Enable signed packets
ntpsigndsocket <%= $ntp::ntpsigndsocket %>
<% } -%>
<%# -%>
<% unless $ntp::peers.empty {-%>
# Peers
<% $ntp::peers.each |$peer| {-%>
peer <%= $peer %>
<% } -%>
<% if $ntp::tos_orphan {-%>
# Enable peer group orphan mode
tos orphan <%= $ntp::tos_orphan %>
<% } -%>
<% } -%>
<% unless $ntp::pool.empty {-%>
# Pool
<% $ntp::pool.each |$pool_srv| {-%>
pool <%= $pool_srv %>
<% } -%>
<% } -%>
<%# -%>
<% if $ntp::keys_enable {-%>
keys <%= $ntp::keys_file %>
<% unless $ntp::keys_trusted.empty {-%>
trustedkey <%= $ntp::keys_trusted.join(' ') %>
<% } -%>
<% if $ntp::keys_requestkey != '' {-%>
requestkey <%= $ntp::keys_requestkey %>
<% } -%>
<% if $ntp::keys_controlkey != '' {-%>
controlkey <%= $ntp::keys_controlkey %>
<% } -%>
<% } -%>
<% $ntp::fudge.each |$entry| {-%>
fudge <%= $entry %>
<% } -%>
<%# -%>
<% if $ntp::leapfile {-%>
# Leapfile
leapfile <%= $ntp::leapfile %>
<% } -%>
<%# -%>
<% if $ntp::tos {-%>
tos <% if $ntp::tos_minclock {-%> minclock <%= $ntp::tos_minclock %><% } %> <% if $ntp::tos_maxclock {-%> maxclock <%= $ntp::tos_maxclock %><% } %> <% if $ntp::tos_minsane {-%> minsane <%= $ntp::tos_minsane %><% } %> <% if $ntp::tos_floor {-%> floor <%= $ntp::tos_floor %><% } %> <% if $ntp::tos_ceiling {-%> ceiling <%= $ntp::tos_ceiling %><% } %> <% if $ntp::tos_cohort {-%> cohort <%= $ntp::tos_cohort %><% } %>
<% } -%>
<%# -%>
<% if $ntp::authprov {-%>
authprov <%= $ntp::authprov %>
<% } -%>
<%# -%>
<% if $ntp::slewalways {-%>
slewalways <%= $ntp::slewalways -%>
<% } -%>
|