Skip to content

Commit

Permalink
ntp v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Nov 9, 2011
1 parent 80bcb48 commit c2997a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions ntp/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
DESCRIPTION
Description
===========

Installs and configures ntp, optionally set up a local NTP server.

CHANGES
Changes
=======

## v1.1.0:

* Fixes COOK-376 (use LAN peers, iburst option, LAN restriction attribute)

## v1.0.1:

* Support scientific linux
* Use service name attribute in resource (fixes EL derivatives)

REQUIREMENTS
Requirements
============

Should work on any Red Hat-family or Debian-family Linux distribution.

ATTRIBUTES
Attributes
==========

* ntp[:is_server]
Expand Down Expand Up @@ -46,18 +50,24 @@ USAGE

Set up the ntp attributes in a role. For example in a base.rb role applied to all nodes:

name "base"
default_attributes(
"ntp" => {
"servers" => ["time0.int.example.org", "time1.int.example.org"]
}
)

Then in an ntpserver.rb role that is applied to NTP servers (e.g., time.int.example.org):

name "base"
default_attributes(
"ntp" => {
"is_server" => "true",
"servers" => ["0.pool.ntp.org", "1.pool.ntp.org"]
"peers" => ["time0.int.example.org", "time1.int.example.org"]
"restrictions" => ["10.0.0.0 mask 255.0.0.0 nomodify notrap"]
}
)

The timeX.int.example.org used in these roles should be the names or IP addresses of internal NTP servers.

Expand Down
2 changes: 1 addition & 1 deletion ntp/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures ntp as a client or server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.1"
version "1.1.0"

recipe "ntp", "Installs and configures ntp either as a server or client"

Expand Down

0 comments on commit c2997a9

Please sign in to comment.