You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+53-69Lines changed: 53 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,9 @@ The ntp module handles installing, configuring, and running NTP across a range o
22
22
23
23
##Setup
24
24
25
-
###What ntp affects
26
-
27
-
* ntp package.
28
-
* ntp configuration file.
29
-
* ntp service.
30
-
31
25
###Beginning with ntp
32
26
33
-
`include '::ntp'` is enough to get you up and running. If you wish to pass in
34
-
parameters specifying which servers to use, then:
27
+
`include '::ntp'` is enough to get you up and running. If you wish to pass in parameters specifying which servers to use, then:
35
28
36
29
```puppet
37
30
class { '::ntp':
@@ -41,8 +34,7 @@ class { '::ntp':
41
34
42
35
##Usage
43
36
44
-
All interaction with the ntp module can do be done through the main ntp class.
45
-
This means you can simply toggle the options in `::ntp` to have full functionality of the module.
37
+
All interaction with the ntp module can be done through the main ntp class. This means you can simply toggle the options in `::ntp` to have full functionality of the module.
46
38
47
39
###I just want NTP, what's the minimum I need?
48
40
@@ -85,7 +77,7 @@ class { '::ntp':
85
77
86
78
###I only want to listen on specific interfaces, not on 0.0.0.0
87
79
88
-
Restricting this is especially useful on Openstack nodes which may have numerous virtual interfaces.
80
+
Restricting ntp to a specific interface is especially useful on Openstack nodes which may have numerous virtual interfaces.
89
81
90
82
```puppet
91
83
class { '::ntp':
@@ -139,145 +131,137 @@ class { '::ntp':
139
131
140
132
###Parameters
141
133
142
-
The following parameters are available in the ntp module:
134
+
The following parameters are available in the `::ntp` class:
143
135
144
136
####`autoupdate`
145
137
146
-
**Deprecated:** This parameter determined whether the ntp module should be
147
-
automatically updated to the latest version available. Replaced by `package_ensure`.
138
+
**Deprecated; replaced by the `package_ensure` parameter**. Tells Puppet whether to keep the ntp module updated to the latest version available. Valid options: 'true' or 'false'. Default value: 'false'
148
139
149
140
####`config`
150
141
151
-
Sets the file that ntp configuration is written into.
142
+
Specifies a file for ntp's configuration info. Valid options: string containing an absolute path. Default value: '/etc/ntp.conf' (or '/etc/inet/ntp.conf' on Solaris)
152
143
153
144
####`config_template`
154
145
155
-
Determines which template Puppet should use for the ntp configuration.
146
+
Specifies a file to act as a template for the config file. Valid options: string containing a path (absolute, or relative to the module path). Default value: 'ntp/ntp.conf.erb'
156
147
157
148
####`disable_monitor`
158
149
159
-
Disables monitoring of ntp.
150
+
Tells Puppet whether to refrain from monitoring the NTP service. Valid options: 'true' or 'false'. Default value: 'false'
160
151
161
152
####`driftfile`
162
153
163
-
Sets the location of the drift file for ntp.
154
+
Specifies an NTP driftfile. Valid options: string containing an absolute path. Default value: '/var/lib/ntp/drift' (except on AIX and Solaris)
164
155
165
156
####`iburst_enable`
166
157
167
-
Set the iburst option in the ntp configuration. If enabled the option is set for every ntp peer.
158
+
Specifies whether to enable the iburst option for every NTP peer. Valid options: 'true' or 'false'. Default value: 'false' (except on AIX and Debian)
168
159
169
160
####`interfaces`
170
161
171
-
Sets the list of interfaces NTP will listen on. This parameter must be an array.
162
+
Specifies one or more network interfaces for NTP to listen on. Valid options: array. Default value: []
172
163
173
164
####`keys_controlkey`
174
165
175
-
The key to use as the control key.
166
+
Provides a control key to be used by NTP. Valid options: string. Default value: ' '
176
167
177
168
####`keys_enable`
178
169
179
-
Whether the ntp keys functionality is enabled.
170
+
Tells Puppet whether to enable key-based authentication. Valid options: 'true' or 'false'. Default value: 'false'
180
171
181
172
####`keys_file`
182
173
183
-
Location of the keys file.
174
+
Specifies an NTP keys file. Valid options: string containing an absolute path. Default value: '/etc/ntp/keys' (except on AIX, SLES, and Solaris)
184
175
185
176
####`keys_requestkey`
186
177
187
-
Which of the keys is the request key.
188
-
189
-
#### `keys_trusted`
178
+
Provides a request key to be used by NTP. Valid options: string. Default value: ' '
190
179
191
-
Array of trusted keys.
180
+
#### `keys_trusted`:
181
+
Provides one or more keys to be trusted by NTP. Valid options: array of keys. Default value: []
192
182
193
183
#### `logfile`
194
184
195
-
Absolute path of the alternate log file. If unspecified, ntp uses syslog by default.
185
+
Specifies a log file for NTP to use instead of syslog. Valid options: string containing an absolute path. Default value: ' '
196
186
197
187
####`package_ensure`
198
188
199
-
Sets the ntp package to be installed. Can be set to 'present', 'latest', or a specific version.
189
+
Tells Puppet whether the NTP package should be installed, and what version. Valid options: 'present', 'latest', or a specific version number. Default value: 'present'
200
190
201
191
####`package_manage`
202
192
203
-
Determines whether to manage the ntp package. Defaults to true.
193
+
Tells Puppet whether to manage the NTP package. Valid options: 'true' or 'false'. Default value: 'true'
204
194
205
195
####`package_name`
206
196
207
-
Determines the name of the package to install.
197
+
Tells Puppet what NTP package to manage. Valid options: string. Default value: 'ntp' (except on AIX and Solaris)
208
198
209
199
####`panic`
210
200
211
-
Determines if ntp should 'panic' in the event of a very large clock skew.
212
-
This defaults to false for virtual machines, as they don't do a great job with keeping time.
201
+
Specifies whether NTP should "panic" in the event of a very large clock skew. Valid options: 'true' or 'false'. Default value: 'true' (except on virtual machines, where major time shifts are normal)
213
202
214
203
####`preferred_servers`
215
204
216
-
List of ntp servers to prefer. Will append 'prefer' for any server in this list
217
-
that also appears in the servers list.
205
+
Specifies one or more preferred peers. Puppet will append 'prefer' to each matching item in the `servers` array. Valid options: array. Default value: []
218
206
219
207
####`restrict`
220
208
221
-
Sets the restrict options in the ntp configuration. The lines are
222
-
prefixed with 'restrict', so you just need to list the rest of the restriction.
209
+
Specifies one or more `restrict` options for the NTP configuration. Puppet will prefix each item with 'restrict', so you only need to list the content of the restriction. Valid options: array. Default value for most operating systems:
210
+
211
+
~~~~
212
+
[
213
+
'default kod nomodify notrap nopeer noquery',
214
+
'-6 default kod nomodify notrap nopeer noquery',
215
+
'127.0.0.1',
216
+
'-6 ::1',
217
+
]
218
+
~~~~
219
+
220
+
Default value for AIX systems:
221
+
222
+
~~~~
223
+
[
224
+
'default nomodify notrap nopeer noquery',
225
+
'127.0.0.1',
226
+
]
227
+
~~~~
223
228
224
229
####`servers`
225
230
226
-
Selects the servers to use for ntp peers.
231
+
Specifies one or more servers to be used as NTP peers. Valid options: array. Default value: varies by operating system
227
232
228
233
####`service_enable`
229
234
230
-
Determines if the service should be enabled at boot.
235
+
Tells Puppet whether to enable the NTP service at boot. Valid options: 'true' or 'false'. Default value: 'true'
231
236
232
237
####`service_ensure`
233
238
234
-
Determines if the service should be runningor not.
239
+
Tells Puppet whether the NTP service should be running. Valid options: 'running' or 'stopped'. Default value: 'running'
235
240
236
241
####`service_manage`
237
242
238
-
Selects whether Puppet should manage the service.
243
+
Tells Puppet whether to manage the NTP service. Valid options: 'true' or 'false'. Default value: 'true'
239
244
240
245
####`service_name`
241
246
242
-
Selects the name of the ntp service for Puppet to manage.
247
+
Tells Puppet what NTP service to manage. Valid options: string. Default value: varies by operating system
243
248
244
249
####`udlc`
245
250
246
-
Enables configs for undisciplined local clock, regardless of
247
-
status as a virtual machine.
248
-
251
+
Specifies whether to enable specialized configuration options for an undisciplined local clock, regardless of its status as a virtual machine. Valid options: 'true' or 'false'. Default value: 'false'
249
252
250
253
##Limitations
251
254
252
-
This module has been built on and tested against Puppet 3.
253
-
254
-
The module has been tested on:
255
-
256
-
* RedHat Enterprise Linux 5/6/7
257
-
* CentOS 5/6/7
258
-
* Oracle Enterprise Linux 5/6/7
259
-
* Scientific Linux 5/6/7
260
-
* SLES 10SP4/11SP1/12
261
-
* Debian 6/7
262
-
* Ubuntu 10.04/12.04/14.04
263
-
* Solaris 11
264
-
* AIX 5.3/6.1/7.1
265
-
266
-
Testing on other platforms has been light and cannot be guaranteed.
255
+
This module has been tested on [all PE-supported platforms](https://forge.puppetlabs.com/supported#compat-matrix), and no issues have been identified.
267
256
268
257
##Development
269
258
270
-
Puppet Labs modules on the Puppet Forge are open projects, and community
271
-
contributions are essential for keeping them great. We can’t access the
272
-
huge number of platforms and myriad of hardware, software, and deployment
273
-
configurations that Puppet is intended to serve.
259
+
Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
274
260
275
-
We want to keep it as easy as possible to contribute changes so that our
276
-
modules work in your environment. There are a few guidelines that we need
277
-
contributors to follow so that we can have a chance of keeping on top of things.
261
+
We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
278
262
279
-
You can read the complete module contribution guide[on the Puppet Labs wiki.](http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing)
263
+
For more information, see our [module contribution guide.](https://docs.puppetlabs.com/forge/contributing.html)
280
264
281
265
###Contributors
282
266
283
-
The list of contributors can be found at: [https://github.com/puppetlabs/puppetlabs-ntp/graphs/contributors](https://github.com/puppetlabs/puppetlabs-ntp/graphs/contributors)
267
+
To see who's already involved, see the [list of contributors.](https://github.com/puppetlabs/puppetlabs-ntp/graphs/contributors)
0 commit comments