This repository has been archived by the owner on Nov 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 678
/
metadata.json
500 lines (435 loc) · 15.9 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
{
"name": "apache2",
"description": "Installs and configures all aspects of apache2 using Debian style symlinks with helper definitions",
"long_description": "= DESCRIPTION:\n\nComplete Debian/Ubuntu style Apache2 configuration.\n\n= REQUIREMENTS:\n\nDebian or Ubuntu preferred.\n\nRed Hat, CentOS, Fedora and ArchLinux can be used but will be converted to a Debian/Ubuntu style Apache as it's far easier to manage with Chef.\n\n= ATTRIBUTES:\n\nThe file attributes/apache.rb contains the following attribute types:\n\n* platform specific locations and settings.\n* general settings\n* prefork attributes\n* worker attributes\n\nGeneral settings and prefork/worker attributes are tunable.\n\n= USAGE:\n\nInclude the apache2 recipe to install Apache2 and get 'sane' default settings. Configuration is modularized through Apache vhost sites a la Debian style configuration.\n\nFor Red Hat, CentOS and Fedora you should first disable selinux as it's not supported (yet), then remove the stock httpd and all it's dependencies prior to attempting to use this recipe. Many packages in these distributions drop conflicting configs into conf.d, all of which haven't been accounted for yet. Starting from scratch will also make it far easier to debug.\n\n== Defines:\n\n* +apache_module+: sets up an Apache module.\n* +apache_conf+: sets up a config file for an apache module.\n* +apache_site+: sets up a vhost site. The conf file must be available.\n* +web_app+: copies the template for a web app and enables it as a site via +apache_site+.\n\n== Web Apps:\n\nVarious applications that can be set up with Apache as the front end, such as PHP, Django, Rails and others can use the web_app define to set up the template and the Apache site. The define is kind of dumb, so the template needs have the application implementation settings, since we don't know what your app is or what is needed from Apache.\n\nWe only prototype one parameter for the +web_app+ define, \"template\". This is used to specify the name of the template to use in the current cookbook. When you use +web_app+, you can set up any parameters you want to use in your template. They will get passed to the template through the params hash. For example, the sample +web_app.conf.erb+ template in this cookbook makes use of these.\n\n* +docroot+\n* +server_name+\n* +server_aliases+\n\nThese are available as +params[:docroot]+, +params[:server_name]+, +params[:server_aliases]+ prefixed with an @ within the template.\n\nIf 'cookbook' and 'template' are not specified, the current cookbook's +templates/default/web_app.conf.erb+ will be used. If this template is not suitable for your application, copy it to your cookbook and customize as needed.\n\n== God Monitor:\n\nThere's a new recipe, +apache2::god_monitor+. You will need to make sure to include the 'god' recipe before using the +apache2::god_monitor+ recipe in your cookbook.\n\n== OpenID Auth\n\nInstalls the +mod_auth_openid+ module from source. Specify an array of OpenIDs that are allowed to authenticate with the attribute +apache[:allowed_openids]+. Use the following in a vhost to protect with OpenID authentication:\n\n AuthOpenIDEnabled On\n AuthOpenIDDBLocation /var/cache/apache2/mod_auth_openid.db\n AuthOpenIDUserProgram /usr/local/bin/mod_auth_openid.rb\n\nChange the DBLocation as appropriate for your platform. You'll need to change the file in the recipe to match. The UserProgram is optional if you don't want to limit access by certain OpenIDs.\n\n= LICENSE & AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\nCopyright:: 2009, 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": "cookbooks@opscode.com",
"license": "Apache 2.0",
"platforms": {
"redhat": [
],
"centos": [
],
"debian": [
],
"ubuntu": [
],
"arch": [
]
},
"dependencies": {
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
"apache": {
"display_name": "Apache Hash",
"description": "Hash of Apache attributes",
"type": "hash",
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"apache/dir": {
"display_name": "Apache Directory",
"description": "Location for Apache configuration",
"default": "/etc/apache2",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/log_dir": {
"display_name": "Apache Log Directory",
"description": "Location for Apache logs",
"default": "/etc/apache2",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/user": {
"display_name": "Apache User",
"description": "User Apache runs as",
"default": "www-data",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/binary": {
"display_name": "Apache Binary",
"description": "Apache server daemon program",
"default": "/usr/sbin/apache2",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/icondir": {
"display_name": "Apache Icondir",
"description": "Directory location for icons",
"default": "/usr/share/apache2/icons",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/listen_ports": {
"display_name": "Apache Listen Ports",
"description": "Ports that Apache should listen on",
"type": "array",
"default": [
"80",
"443"
],
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"apache/contact": {
"display_name": "Apache Contact",
"description": "Email address of webmaster",
"default": "ops@example.com",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/timeout": {
"display_name": "Apache Timeout",
"description": "Connection timeout value",
"default": "300",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/keepalive": {
"display_name": "Apache Keepalive",
"description": "HTTP persistent connections",
"default": "On",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/keepaliverequests": {
"display_name": "Apache Keepalive Requests",
"description": "Number of requests allowed on a persistent connection",
"default": "100",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/keepalivetimeout": {
"display_name": "Apache Keepalive Timeout",
"description": "Time to wait for requests on persistent connection",
"default": "5",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/servertokens": {
"display_name": "Apache Server Tokens",
"description": "Server response header",
"default": "Prod",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/serversignature": {
"display_name": "Apache Server Signature",
"description": "Configure footer on server-generated documents",
"default": "On",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/traceenable": {
"display_name": "Apache Trace Enable",
"description": "Determine behavior of TRACE requests",
"default": "On",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/allowed_openids": {
"display_name": "Apache Allowed OpenIDs",
"description": "Array of OpenIDs allowed to authenticate",
"default": "",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/prefork": {
"display_name": "Apache Prefork",
"description": "Hash of Apache prefork tuning attributes.",
"type": "hash",
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"apache/prefork/startservers": {
"display_name": "Apache Prefork MPM StartServers",
"description": "Number of MPM servers to start",
"default": "16",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/prefork/minspareservers": {
"display_name": "Apache Prefork MPM MinSpareServers",
"description": "Minimum number of spare server processes",
"default": "16",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/prefork/maxspareservers": {
"display_name": "Apache Prefork MPM MaxSpareServers",
"description": "Maximum number of spare server processes",
"default": "32",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/prefork/serverlimit": {
"display_name": "Apache Prefork MPM ServerLimit",
"description": "Upper limit on configurable server processes",
"default": "400",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/prefork/maxclients": {
"display_name": "Apache Prefork MPM MaxClients",
"description": "Maximum number of simultaneous connections",
"default": "400",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/prefork/maxrequestsperchild": {
"display_name": "Apache Prefork MPM MaxRequestsPerChild",
"description": "Maximum number of request a child process will handle",
"default": "10000",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/worker": {
"display_name": "Apache Worker",
"description": "Hash of Apache prefork tuning attributes.",
"type": "hash",
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"apache/worker/startservers": {
"display_name": "Apache Worker MPM StartServers",
"description": "Initial number of server processes to start",
"default": "4",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/worker/maxclients": {
"display_name": "Apache Worker MPM MaxClients",
"description": "Maximum number of simultaneous connections",
"default": "1024",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/worker/minsparethreads": {
"display_name": "Apache Worker MPM MinSpareThreads",
"description": "Minimum number of spare worker threads",
"default": "64",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/worker/maxsparethreads": {
"display_name": "Apache Worker MPM MaxSpareThreads",
"description": "Maximum number of spare worker threads",
"default": "192",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/worker/threadsperchild": {
"display_name": "Apache Worker MPM ThreadsPerChild",
"description": "Constant number of worker threads in each server process",
"default": "64",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"apache/worker/maxrequestsperchild": {
"display_name": "Apache Worker MPM MaxRequestsPerChild",
"description": "Maximum number of request a child process will handle",
"default": "0",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
}
},
"groupings": {
},
"recipes": {
"apache2": "Main Apache configuration",
"apache2::mod_alias": "Apache module 'alias' with config file",
"apache2::mod_auth_basic": "Apache module 'auth_basic'",
"apache2::mod_auth_digest": "Apache module 'auth_digest'",
"apache2::mod_auth_openid": "Apache module 'authopenid'",
"apache2::mod_authn_file": "Apache module 'authn_file'",
"apache2::mod_authnz_ldap": "Apache module 'authnz_ldap'",
"apache2::mod_authz_default": "Apache module 'authz_default'",
"apache2::mod_authz_groupfile": "Apache module 'authz_groupfile'",
"apache2::mod_authz_host": "Apache module 'authz_host'",
"apache2::mod_authz_user": "Apache module 'authz_user'",
"apache2::mod_autoindex": "Apache module 'autoindex' with config file",
"apache2::mod_cgi": "Apache module 'cgi'",
"apache2::mod_dav": "Apache module 'dav'",
"apache2::mod_dav_svn": "Apache module 'dav_svn'",
"apache2::mod_deflate": "Apache module 'deflate' with config file",
"apache2::mod_dir": "Apache module 'dir' with config file",
"apache2::mod_env": "Apache module 'env'",
"apache2::mod_expires": "Apache module 'expires'",
"apache2::mod_fcgid": "Apache module 'fcgid', package on ubuntu/debian, rhel/centos, compile source on suse; with config file",
"apache2::mod_headers": "Apache module 'headers'",
"apache2::mod_ldap": "Apache module 'ldap'",
"apache2::mod_log_config": "Apache module 'log_config'",
"apache2::mod_mime": "Apache module 'mime' with config file",
"apache2::mod_negotiation": "Apache module 'negotiation' with config file",
"apache2::mod_php5": "Apache module 'php5'",
"apache2::mod_proxy": "Apache module 'proxy' with config file",
"apache2::mod_proxy_ajp": "Apache module 'proxy_ajp'",
"apache2::mod_proxy_balancer": "Apache module 'proxy_balancer'",
"apache2::mod_proxy_connect": "Apache module 'proxy_connect'",
"apache2::mod_proxy_http": "Apache module 'proxy_http'",
"apache2::mod_python": "Apache module 'python'",
"apache2::mod_rewrite": "Apache module 'rewrite'",
"apache2::mod_setenvif": "Apache module 'setenvif' with config file",
"apache2::mod_ssl": "Apache module 'ssl' with config file, adds port 443 to listen_ports",
"apache2::mod_status": "Apache module 'status' with config file"
},
"version": "0.99.3"
}