Skip to content

Commit b214c79

Browse files
committed
Merge pull request redhat-openstack#246 from hunner/genome-vendor-fudge
Add fudge option
2 parents e4c2072 + ed2fa1e commit b214c79

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

README.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ Tells Puppet whether to refrain from monitoring the NTP service. Valid options:
160160

161161
Specifies an NTP driftfile. Valid options: string containing an absolute path. Default value: '/var/lib/ntp/drift' (except on AIX and Solaris)
162162

163+
#### `fudge`
164+
165+
Used to provide additional information for individual clock drivers. Valid options: array containing strings that follow the `fudge` command. Default value: [ ]
166+
163167
####`iburst_enable`
164168

165169
Specifies whether to enable the iburst option for every NTP peer. Valid options: 'true' or 'false'. Default value: 'false' (except on AIX and Debian)

manifests/init.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$config_template = $ntp::params::config_template,
66
$disable_auth = $ntp::params::disable_auth,
77
$disable_monitor = $ntp::params::disable_monitor,
8+
$fudge = $ntp::params::fudge,
89
$driftfile = $ntp::params::driftfile,
910
$logfile = $ntp::params::logfile,
1011
$iburst_enable = $ntp::params::iburst_enable,
@@ -48,6 +49,7 @@
4849
validate_array($restrict)
4950
validate_array($interfaces)
5051
validate_array($servers)
52+
validate_array($fudge)
5153
validate_bool($service_enable)
5254
validate_string($service_ensure)
5355
validate_bool($service_manage)

manifests/params.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
$disable_auth = false
1818
$broadcastclient = false
1919

20+
# Allow a list of fudge options
21+
$fudge = []
22+
2023
# On virtual machines allow large clock skews.
2124
# TODO Change this to str2bool($::is_virtual) when stdlib dependency is >= 4.0.0
2225
# NOTE The "x${var}" is just to avoid lint quoted variable warning.

templates/ntp.conf.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ controlkey <%= @keys_controlkey %>
6767
<% end -%>
6868

6969
<% end -%>
70+
<% [@fudge].flatten.each do |entry| -%>
71+
fudge <%= entry %>
72+
<% end -%>

0 commit comments

Comments
 (0)