forked from sous-chefs/ntp
-
Notifications
You must be signed in to change notification settings - Fork 4
/
metadata.json
157 lines (139 loc) · 5.83 KB
/
metadata.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "ntp",
"description": "Installs and configures ntp as a client or server",
"long_description": "Description\n===========\n\nInstalls and configures ntp, optionally set up a local NTP server.\n\nRequirements\n============\n\nShould work on any Red Hat-family or Debian-family Linux distribution or on FreeBSD.\n\nAttributes\n==========\n\n* ntp[:is_server]\n\n - Boolean, should be true or false, defaults to false\n\n* ntp[:servers] (applies to NTP Servers and Clients)\n\n - Array, should be a list of upstream NTP public servers. The NTP protocol\n works best with at least 3 servers. The NTPD maximum is 7 upstream\n servers, any more than that and some of them will be ignored by the daemon.\n\n* ntp[:peers] (applies to NTP Servers ONLY)\n\n - Array, should be a list of local NTP private servers. Configuring peer\n servers on your LAN will reduce traffic to upstream time sources, and\n provide higher availability of NTP on your LAN. Again the maximum is 7\n peers\n\n* ntp[:restrictions] (applies to NTP Servers only)\n\n - Array, should be a list of restrict lines to restrict access to NTP\n clients on your LAN.\n\n* ntp[:driftfile]\n\n - String, the path to the frequency file.\n\n* ntp[:statsdir]\n\n - String, the directory path for files created by the statistics facility.\n\nUsage\n=====\n\nSet up the ntp attributes in a role. For example in a base.rb role applied to all nodes:\n\n name \"base\"\n description \"Role applied to all systems\"\n default_attributes(\n \"ntp\" => {\n \"servers\" => [\"time0.int.example.org\", \"time1.int.example.org\"]\n }\n )\n\nThen in an ntpserver.rb role that is applied to NTP servers (e.g., time.int.example.org):\n\n name \"ntp_server\"\n description \"Role applied to the system that should be an NTP server.\"\n default_attributes(\n \"ntp\" => {\n \"is_server\" => \"true\",\n \"servers\" => [\"0.pool.ntp.org\", \"1.pool.ntp.org\"],\n \"peers\" => [\"time0.int.example.org\", \"time1.int.example.org\"],\n \"restrictions\" => [\"10.0.0.0 mask 255.0.0.0 nomodify notrap\"]\n }\n )\n\nThe timeX.int.example.org used in these roles should be the names or IP addresses of internal NTP servers.\n\nLicense and Author\n==================\n\nAuthor:: Joshua Timberman (<[email protected]>)\n\nCopyright 2009-2011, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
"maintainer": "Opscode, Inc.",
"maintainer_email": "[email protected]",
"license": "Apache 2.0",
"platforms": {
"ubuntu": ">= 0.0.0",
"debian": ">= 0.0.0",
"redhat": ">= 0.0.0",
"centos": ">= 0.0.0",
"fedora": ">= 0.0.0",
"scientific": ">= 0.0.0",
"freebsd": ">= 0.0.0"
},
"dependencies": {
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
"ntp": {
"display_name": "NTP",
"description": "Hash of NTP attributes",
"type": "hash",
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"ntp/service": {
"display_name": "NTP Service",
"description": "Name of the NTP service",
"default": "ntp",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"ntp/is_server": {
"display_name": "NTP Is Server?",
"description": "Set to true if this is an NTP server",
"default": "false",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"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"
],
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"ntp/peers": {
"display_name": "NTP Peers",
"description": "Array of local NTP servers, we should peer with",
"type": "array",
"default": [
],
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"ntp/restrictions": {
"display_name": "Restriction lines",
"description": "Array of restriction lines to apply to NTP servers",
"type": "array",
"default": [
],
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"ntp/driftfile": {
"display_name": "NTP Driftfile",
"description": "Location of the NTP driftfile",
"default": "/var/lib/ntp/ntp.drift",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"ntp/statsdir": {
"display_name": "NTP Statsdir",
"description": "Location of the NTP statsdir",
"default": "/var/log/ntpstats/",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
}
},
"groupings": {
},
"recipes": {
"ntp": "Installs and configures ntp either as a server or client"
},
"version": "1.1.8"
}