Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


ntp (90) Versions 1.1.6

Installs and configures ntp as a client or server

cookbook 'ntp', '= 1.1.6', :supermarket
cookbook 'ntp', '= 1.1.6'
knife supermarket install ntp
knife supermarket download ntp
Quality -%


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


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


  • ntp[:is_server]

    • Boolean, should be true or false, defaults to false
  • ntp[:servers] (applies to NTP Servers and Clients)

    • Array, should be a list of upstream NTP public servers. The NTP protocol works best with at least 3 servers. The NTPD maximum is 7 upstream servers, any more than that and some of them will be ignored by the daemon.
  • ntp[:peers] (applies to NTP Servers ONLY)

    • Array, should be a list of local NTP private servers. Configuring peer servers on your LAN will reduce traffic to upstream time sources, and provide higher availability of NTP on your LAN. Again the maximum is 7 peers
  • ntp[:restrictions] (applies to NTP Servers only)

    • Array, should be a list of restrict lines to restrict access to NTP clients on your LAN.
  • ntp[:driftfile]

    • String, the path to the frequency file.
  • ntp[:statsdir]

    • String, the directory path for files created by the statistics facility.


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

name "base"
description "Role applied to all systems"
  "ntp" => {
    "servers" => ["", ""]

Then in an ntpserver.rb role that is applied to NTP servers (e.g.,

name "ntp_server"
description "Role applied to the system that should be an NTP server."
  "ntp" => {
    "is_server" => "true",
    "servers" => ["", ""],
    "peers" => ["", ""],
    "restrictions" => [" mask nomodify notrap"]

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

License and Author

Author:: Joshua Timberman (

Copyright 2009-2011, Opscode, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

base_install Applicable Versions
baseserver Applicable Versions
cafe-core Applicable Versions
cdap Applicable Versions
chef-manageiq Applicable Versions
circonus-broker Applicable Versions
cloudless-box Applicable Versions
common_linux Applicable Versions
eucalyptus Applicable Versions
firstbook Applicable Versions
il-base Applicable Versions
kagent Applicable Versions
krb5 Applicable Versions
kvm Applicable Versions
linux-basic Applicable Versions
linux_basic Applicable Versions
mw_server_base Applicable Versions
my_cookbook Applicable Versions
ntp_cluster Applicable Versions
os-hardening Applicable Versions
paramount Applicable Versions
platformstack Applicable Versions
privx Applicable Versions
sanity Applicable Versions
server-base Applicable Versions
stack-base Applicable Versions

No quality metric results found