Skip to content

Commit 2814235

Browse files
author
Ashley Penney
committed
Rewrite the README and prepare the CHANGELOG.
1 parent d934a26 commit 2814235

File tree

2 files changed

+132
-65
lines changed

2 files changed

+132
-65
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2013-07-08 - Version 1.0.0
2+
Features:
3+
- Completely refactored to split across several classes.
4+
15
2011-11-10 Dan Bode <[email protected]> - 0.0.4
26
Add Amazon Linux as a supported platform
37
Add unit tests

README.markdown

+128-65
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,173 @@
1-
ntp
2-
====
1+
#ntp
32

4-
[![Build Status](https://travis-ci.org/puppetlabs/puppetlabs-ntp.png?branch=master)](https://travis-ci.org/puppetlabs/puppetlabs-ntp)
3+
####Table of Contents
54

5+
1. [Overview](#overview)
6+
2. [Module Description - What the module does and why it is useful](#module-description)
7+
3. [Setup - The basics of getting started with ntp](#setup)
8+
* [What ntp affects](#what-ntp-affects)
9+
* [Setup requirements](#setup-requirements)
10+
* [Beginning with ntp](#beginning-with-ntp)
11+
4. [Usage - Configuration options and additional functionality](#usage)
12+
5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
13+
5. [Limitations - OS compatibility, etc.](#limitations)
14+
6. [Development - Guide for contributing to the module](#development)
615

7-
Overview
8-
--------
16+
##Overview
917

10-
The NTP module installs, configures, and manages the network time service.
18+
The NTP module installs, configures, and manages the ntp service.
1119

20+
##Module Description
1221

13-
Module Description
14-
-------------------
22+
The NTP module handles running NTP across a range of operating systems and
23+
distributions. Where possible we use the upstream ntp templates so that the
24+
results closely match what you'd get if you modified the package default conf
25+
files.
1526

16-
The NTP module allows Puppet to install, configure, and then manage your Network Time Protocol service. The module allows you to setup and manage time settings across many servers from one place.
27+
##Setup
1728

18-
Setup
19-
-----
29+
###What ntp affects
2030

21-
**What NTP affects:**
31+
* ntp package.
32+
* ntp configuration file.
33+
* ntp service.
2234

23-
* package/service/configuration files for NTP
24-
* server settings
25-
26-
### Beginning with NTP
35+
###Beginning with ntp
2736

28-
To setup NTP on a server
37+
include '::ntp' is enough to get you up and running. If you wish to pass in
38+
parameters like which servers to use then you can use:
2939

30-
class { "ntp":
31-
servers => [ 'time.apple.com' ],
32-
autoupdate => false,
40+
class { '::ntp':
41+
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
3342
}
3443

35-
Usage
36-
------
44+
##Usage
3745

38-
When making changes to your configuration of NTP, you may need to stop and restart the ntp service. To keep the ntp service stopped, pass ensure => stopped to the class:
46+
All interaction with the ntp module can do be done through the main ntp class.
47+
This means you can simply toggle the options in the ntp class to get at the
48+
full functionality.
3949

40-
class { ntp:
41-
ensure => running,
42-
servers => [ 'time.apple.com iburst',
43-
'pool.ntp.org iburst' , ]
44-
autoupdate => true,
50+
###I just want NTP, what's the minimum I need?
51+
52+
include '::ntp'
53+
54+
###I just want to tweak the servers, nothing else.
55+
56+
class { '::ntp':
57+
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
4558
}
4659

47-
The `ntp` class has several parameters to assist configuration of the ntp service.
4860

49-
**Parameters within `ntp`**
61+
###I'd like to make sure I restrict who can connect as well.
5062

51-
####`servers`
63+
class { '::ntp':
64+
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
65+
restrict => 'restrict 127.0.0.1',
66+
}
5267

53-
NTP will use your operating system's default server if this parameter is left unspecified. This parameter accepts an array of servers,
54-
55-
class { 'ntp':
56-
servers => [ '0.debian.pool.ntp.org iburst',
57-
'1.debian.pool.ntp.org iburst',
58-
'2.debian.pool.ntp.org iburst',
59-
'3.debian.pool.ntp.org iburst', ]
68+
###I'd like to opt out of having the service controlled, we use another tool for that.
69+
70+
class { '::ntp':
71+
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
72+
restrict => 'restrict 127.0.0.1',
73+
manage_service => false,
6074
}
6175

62-
####`restrict`
76+
###Looks great! But I'd like a different template, we need to do something unique here.
77+
78+
class { '::ntp':
79+
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
80+
restrict => 'restrict 127.0.0.1',
81+
manage_service => false,
82+
config_template => 'different/module/custom.template.erb',
83+
}
6384

64-
This parameter specifies whether to restrict ntp daemons from allowing others to use as a server.
85+
##Reference
86+
87+
###Classes
88+
89+
* ntp: Main class, includes all the rest.
90+
* ntp::install: Handles the packages.
91+
* ntp::config: Handles the configuration file.
92+
* ntp::service: Handles the service.
93+
94+
###Parameters
95+
96+
The following parameters are available in the ntp module
6597

6698
####`autoupdate`
6799

68-
This parameter is used to determine whether the ntp package will be updated automatically or not.
100+
Deprecated: This parameter previously determined if the ntp module should be
101+
automatically updated to the latest version available. Replaced by package\_
102+
ensure.
103+
104+
####`config`
105+
106+
This sets the file to write ntp configuration into.
107+
108+
####`config_template`
109+
110+
This determines which template puppet should use for the ntp configuration.
69111

70-
####`enable`
112+
####`package_ensure`
71113

72-
This parameter allows you to choose whether to automatically start ntp daemon on boot.
114+
This can be set to 'present' or 'latest' or a specific version to choose the
115+
ntp package to be installed.
73116

74-
####`template`
117+
####`package_name`
75118

76-
This parameter allows you to explicitly override the template used.
119+
This determines the name of the package to install.
77120

121+
####`restrict`
122+
123+
This sets the restrict options in the ntp configuration.
124+
125+
####`servers`
126+
127+
This selects the servers to use for ntp peers.
128+
129+
####`service_enable`
130+
131+
This determines if the service should be enabled at boot.
132+
133+
####`service_ensure`
134+
135+
This determines if the service should be running or not.
78136

79-
Limitations
80-
------------
137+
####`service_manage`
81138

82-
This module has been built and tested using Puppet 2.6.x, 2.7, and 3.x.
139+
This selects if puppet should manage the service in the first place.
140+
141+
####`service_name`
142+
143+
This selects the name of the ntp service for puppet to manage.
144+
145+
146+
##Limitations
147+
148+
This module has been built on and tested against Puppet 2.7 and higher.
83149

84150
The module has been tested on:
85151

86-
* Enterprise Linux 5
87-
* Debian 6.0
88-
* CentOS 5.4.
152+
* RedHat Enterprise Linux 5/6
153+
* Debian 6/7
154+
* CentOS 5/6.
89155
* Ubuntu 12.04
156+
* Gentoo
157+
* Arch Linux
158+
* FreeBSD
90159

91160
Testing on other platforms has been light and cannot be guaranteed.
92161

93-
Development
94-
------------
162+
##Development
95163

96-
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.
164+
Puppet Labs modules on the Puppet Forge are open projects, and community
165+
contributions are essential for keeping them great. We can’t access the
166+
huge number of platforms and myriad of hardware, software, and deployment
167+
configurations that Puppet is intended to serve.
97168

98-
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.
169+
We want to keep it as easy as possible to contribute changes so that our
170+
modules work in your environment. There are a few guidelines that we need
171+
contributors to follow so that we can have a chance of keeping on top of things.
99172

100173
You can read the complete module contribution guide [on the Puppet Labs wiki.](http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing)
101-
102-
Release Notes
103-
--------------
104-
105-
**0.2.0**
106-
107-
0.2.0 is a backwards compatible feature and bug-fix release. Since
108-
0.1.0, support for Amazon Linux was added, fixes for style were
109-
implemented, and support was added for tinker_panic. tinker_panic
110-
will default to on when the fact is_virtual is true.

0 commit comments

Comments
 (0)