forked from sous-chefs/ntp
-
Notifications
You must be signed in to change notification settings - Fork 4
/
metadata.rb
44 lines (38 loc) · 1.43 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
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.1.8"
recipe "ntp", "Installs and configures ntp either as a server or client"
%w{ ubuntu debian redhat centos fedora scientific amazon oracle freebsd }.each do |os|
supports os
end
attribute "ntp",
:display_name => "NTP",
:description => "Hash of NTP attributes",
:type => "hash"
attribute "ntp/servers",
:display_name => "NTP Servers",
:description => "Array of servers we should talk to",
:type => "array",
:default => ["0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org", "3.pool.ntp.org" ],
:required => "recommended"
attribute "ntp/peers",
:display_name => "NTP Peers",
:description => "Array of local NTP servers, we should peer with",
:type => "array",
:default => [],
:required => "recommended"
attribute "ntp/restrictions",
:display_name => "Restriction lines",
:description => "Array of restriction lines to apply to NTP servers",
:type => "array",
:default => [],
:required => "recommended"
attribute "ntp/ntpdate/disable",
:display_name => "ntpdate-debian script disable",
:description => "Defaults to false. Set to true to disable ntpdate-debian script",
:type => "string",
:default => "false",
:required => "recommended"