forked from sous-chefs/ntp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
41 lines (34 loc) · 1.46 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
name 'ntp'
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.6.5'
recipe 'ntp', 'Installs and configures ntp either as a server or client'
%w{ amazon centos debian fedora freebsd gentoo redhat scientific solaris2 oracle ubuntu windows xcp }.each do |os|
supports os
end
suggests 'windows'
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'