Skip to content

Commit dbedc2c

Browse files
tphoneyHelen
authored and
Helen
committed
Adding tos_maxclock (#407)
* Fix for syntax error in tos area - we need separate params by spaces. Add maxclock params. Add tested version of FreeBSD platform * Forget maxclock defaults for #365 issue * Adding tos_maxclock and cleanup to ntp.conf
1 parent c165325 commit dbedc2c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,16 @@ Whether to enable tos options.
566566

567567
Default value: `false`.
568568

569+
#### `tos_maxclock`
570+
571+
Optional.
572+
573+
Data type: Integer[1].
574+
575+
Specifies the maxclock tos option.
576+
577+
Default value: 6.
578+
569579
#### `tos_minclock`
570580

571581
Optional.

data/common.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ ntp::tinker: ~
5555
ntp::tos_ceiling: 15
5656
ntp::tos_cohort: 0
5757
ntp::tos_floor: 1
58+
ntp::tos_maxclock: 6
5859
ntp::tos_minclock: 3
5960
ntp::tos_minsane: 1
6061
ntp::tos: false

manifests/init.pp

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
Optional[String] $step_tickers_template,
111111
Optional[Boolean] $tinker,
112112
Boolean $tos,
113+
Optional[Integer[1]] $tos_maxclock,
113114
Optional[Integer[1]] $tos_minclock,
114115
Optional[Integer[1]] $tos_minsane,
115116
Optional[Integer[1]] $tos_floor,

templates/ntp.conf.epp

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ leapfile <%= $ntp::leapfile %>
133133
<% } -%>
134134
<%# -%>
135135
<% if $ntp::tos {-%>
136-
tos <% if $ntp::tos_minclock {-%> minclock <%= $ntp::tos_minclock %><% } %> <% 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 %><% } %>
136+
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 %><% } %>
137137
<% } %>
138138
<%# -%>
139139
<% if $ntp::authprov {-%>

0 commit comments

Comments
 (0)