Skip to content

Commit f5af8ef

Browse files
authored
Merge pull request voxpupuli#226 from cirrax/dev_cirrax
add parameter for leapseclist
2 parents 8cbc9ee + 2724d6b commit f5af8ef

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

REFERENCE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ The following parameters are available in the `chrony` class:
183183
* [`sched_priority`](#-chrony--sched_priority)
184184
* [`leapsecmode`](#-chrony--leapsecmode)
185185
* [`leapsectz`](#-chrony--leapsectz)
186+
* [`leapseclist`](#-chrony--leapseclist)
186187
* [`maxdistance`](#-chrony--maxdistance)
187188
* [`maxslewrate`](#-chrony--maxslewrate)
188189
* [`ntsserverkey`](#-chrony--ntsserverkey)
@@ -716,6 +717,14 @@ Specifies a timezone that chronyd can use to determine the offset between UTC an
716717

717718
Default value: `undef`
718719

720+
##### <a name="-chrony--leapseclist"></a>`leapseclist`
721+
722+
Data type: `Optional[Stdlib::Absolutepath]`
723+
724+
Specifies the path to a file containing a list of leap seconds and TAI-UTC offsets in NIST/IERS format.
725+
726+
Default value: `undef`
727+
719728
##### <a name="-chrony--maxdistance"></a>`maxdistance`
720729

721730
Data type: `Optional[Float]`

manifests/init.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@
210210
# Configures how to insert the leap second mode.
211211
# @param leapsectz
212212
# Specifies a timezone that chronyd can use to determine the offset between UTC and TAI.
213+
# @param leapseclist
214+
# Specifies the path to a file containing a list of leap seconds and TAI-UTC offsets in NIST/IERS format.
213215
# @param maxdistance
214216
# Sets the maximum root distance of a source to be acceptable for synchronisation of the clock.
215217
# @param maxslewrate
@@ -326,6 +328,7 @@
326328
Optional[String] $smoothtime = undef,
327329
Optional[Enum['system', 'step', 'slew', 'ignore']] $leapsecmode = undef,
328330
Optional[String] $leapsectz = undef,
331+
Optional[Stdlib::Absolutepath] $leapseclist = undef,
329332
Optional[Float] $maxdistance = undef,
330333
Optional[Float] $maxslewrate = undef,
331334
Optional[Float] $maxupdateskew = undef,

templates/chrony.conf.epp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ leapsecmode <%= $chrony::leapsecmode %>
189189
# https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html#leapsectz
190190
leapsectz <%= $chrony::leapsectz %>
191191
<% } -%>
192+
<% if $chrony::leapseclist { -%>
193+
194+
# https://chrony-project.org/doc/latest/chrony.conf.html#leapseclist
195+
leapseclist <%= $chrony::leapseclist %>
196+
<% } -%>
192197
<% if $chrony::maxdistance { -%>
193198

194199
# https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html#maxdistance

0 commit comments

Comments
 (0)