forked from sous-chefs/ntp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
45 lines (37 loc) · 1.34 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
45
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.2"
recipe "ntp", "Installs and configures ntp either as a server or client"
%w{ ubuntu debian redhat centos fedora scientific }.each do |os|
supports os
end
attribute "ntp",
:display_name => "NTP",
:description => "Hash of NTP attributes",
:type => "hash"
attribute "ntp/service",
:display_name => "NTP Service",
:description => "Name of the NTP service",
:default => "ntp"
attribute "ntp/is_server",
:display_name => "NTP Is Server?",
:description => "Set to true if this is an NTP server",
:default => "false"
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" ]
attribute "ntp/peers",
:display_name => "NTP Peers",
:description => "Array of local NTP servers, we should peer with",
:type => "array",
:default => []
attribute "ntp/restrictions",
:display_name => "Restriction lines",
:description => "Array of restriction lines to apply to NTP servers",
:type => "array",
:default => []