Skip to content

Commit 7443778

Browse files
author
Morgan Haskel
committed
Merge pull request redhat-openstack#241 from psoloway/readme-overhaul
Updates the README file
2 parents 955ef51 + 5b9e8a5 commit 7443778

1 file changed

Lines changed: 53 additions & 69 deletions

File tree

README.markdown

Lines changed: 53 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,9 @@ The ntp module handles installing, configuring, and running NTP across a range o
2222

2323
##Setup
2424

25-
###What ntp affects
26-
27-
* ntp package.
28-
* ntp configuration file.
29-
* ntp service.
30-
3125
###Beginning with ntp
3226

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:
3528

3629
```puppet
3730
class { '::ntp':
@@ -41,8 +34,7 @@ class { '::ntp':
4134

4235
##Usage
4336

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.
4638

4739
###I just want NTP, what's the minimum I need?
4840

@@ -85,7 +77,7 @@ class { '::ntp':
8577

8678
###I only want to listen on specific interfaces, not on 0.0.0.0
8779

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.
8981

9082
```puppet
9183
class { '::ntp':
@@ -139,145 +131,137 @@ class { '::ntp':
139131

140132
###Parameters
141133

142-
The following parameters are available in the ntp module:
134+
The following parameters are available in the `::ntp` class:
143135

144136
####`autoupdate`
145137

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'
148139

149140
####`config`
150141

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)
152143

153144
####`config_template`
154145

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'
156147

157148
####`disable_monitor`
158149

159-
Disables monitoring of ntp.
150+
Tells Puppet whether to refrain from monitoring the NTP service. Valid options: 'true' or 'false'. Default value: 'false'
160151

161152
####`driftfile`
162153

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)
164155

165156
####`iburst_enable`
166157

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)
168159

169160
####`interfaces`
170161

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: [ ]
172163

173164
####`keys_controlkey`
174165

175-
The key to use as the control key.
166+
Provides a control key to be used by NTP. Valid options: string. Default value: ' '
176167

177168
####`keys_enable`
178169

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'
180171

181172
####`keys_file`
182173

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)
184175

185176
####`keys_requestkey`
186177

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: ' '
190179

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: [ ]
192182

193183
#### `logfile`
194184

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: ' '
196186

197187
####`package_ensure`
198188

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'
200190

201191
####`package_manage`
202192

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'
204194

205195
####`package_name`
206196

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)
208198

209199
####`panic`
210200

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)
213202

214203
####`preferred_servers`
215204

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: [ ]
218206

219207
####`restrict`
220208

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+
~~~~
223228

224229
####`servers`
225230

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
227232

228233
####`service_enable`
229234

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'
231236

232237
####`service_ensure`
233238

234-
Determines if the service should be running or not.
239+
Tells Puppet whether the NTP service should be running. Valid options: 'running' or 'stopped'. Default value: 'running'
235240

236241
####`service_manage`
237242

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'
239244

240245
####`service_name`
241246

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
243248

244249
####`udlc`
245250

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'
249252

250253
##Limitations
251254

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.
267256

268257
##Development
269258

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.
274260

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.
278262

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)
280264

281265
###Contributors
282266

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

Comments
 (0)