forked from ctdk/chef-lighttpd
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetadata.rb
More file actions
158 lines (129 loc) · 4.61 KB
/
metadata.rb
File metadata and controls
158 lines (129 loc) · 4.61 KB
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
name 'lighttpd'
maintainer 'Kos Media, LLC'
maintainer_email 'jeremy@dailykos.com'
license 'Apache 2.0'
description 'Installs/Configures Lighttpd'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.3.1'
recipe 'lighttpd', 'Installs and configures the lighttpd webserver, a light, fast webserver.'
depends 'apt', '~> 2.2'
depends 'ohai', '~> 1.1'
depends 'runit', '~> 1.2'
depends 'yum', '~> 3.0'
depends 'yum-epel'
supports 'amazon'
supports 'centos'
supports 'debian'
supports 'fedora'
supports 'oracle'
supports 'redhat'
supports 'scientific'
supports 'ubuntu'
attribute 'lighttpd',
:display_name => 'Lighttpd perl Hash',
:description => 'Hash of lighttpd attributes',
:type => 'hash'
attribute 'lighttpd/dir',
:display_name => 'lighttpd root dir',
:description => 'Root lighttpd configuration directory',
:default => '/etc/lighttpd'
attribute 'lighttpd/log_dir',
:display_name => 'lighttpd log dir',
:description => 'Log directory for lighttpd',
:default => '/var/log/lighttpd'
attribute 'lighttpd/user',
:display_name => 'lighttpd user',
:description => 'lighttpd user',
:default => 'www-data'
attribute 'lighttpd/group',
:display_name => 'lighttpd group',
:description => 'lighttpd group',
:default => 'www-data'
attribute 'lighttpd/doc_root',
:display_name => 'lighttpd doc root',
:description => 'lighttpd doc root',
:default => '/var/www'
attribute 'lighttpd/max_worker',
:display_name => 'Max worker',
:description => 'Max worker',
:default => '8'
attribute 'lighttpd/pid_file',
:display_name => 'Pid file',
:description => 'Pid file',
:default => '/var/run/lighttpd'
attribute 'lighttpd/encoding',
:display_name => 'character encoding',
:description => 'character encoding',
:default => 'utf-8'
attribute 'lighttpd/dir_listing',
:display_name => 'dir listing',
:description => 'dir listing',
:default => 'disable'
attribute 'lighttpd/max_fds',
:display_name => 'max file descriptors',
:description => 'max file descriptors',
:default => '8192'
attribute 'lighttpd/max_connections',
:display_name => 'max connections',
:description => 'max connections',
:default => '4096'
attribute 'lighttpd/use_ipv6',
:display_name => 'use ipv6',
:description => 'use ipv6',
:default => 'enable'
# compress hash, get it out of the way
attribute 'lighttpd/compress',
:display_name => 'lighttpd compress',
:description => 'Hash of lighttpd compress options',
:type => 'hash'
attribute 'lighttpd/compress/use_compress',
:display_name => 'Use the mod_compress cache dir',
:description => 'use mod_compress cache dir',
:default => 'true'
attribute 'lighttpd/compress/mime_types',
:display_name => 'compress mime types',
:description => 'compress mime types (for most browers anyway)',
:type => 'array',
:default => ['text/html', 'text/plain', 'text/xml']
attribute 'lighttpd/compress/mime_types_non_ie6',
:display_name => 'compress mime types non-ie5 or 6',
:description => "compress mime types for browsers that support compression and aren't IE5 or IE6",
:type => 'array',
:default => ['text/css', 'text/javascript', 'application/javascript']
attribute 'lighttpd/compress/cache_dir',
:display_name => 'compress cache dir',
:description => 'compress cache dir',
:default => '/var/tmp/lighttpd/cache/compress'
# Debug hash
attribute 'lighttpd/debug',
:display_name => 'Lighttpd Debug options',
:description => 'Hash of debug options for lighttpd',
:type => 'hash'
attribute 'lighttpd/debug/proxy',
:display_name => 'debug proxy',
:description => 'debug the proxy engine',
:default => 'disable'
attribute 'lighttpd/debug/core_files',
:display_name => 'debug proxy',
:description => 'debug the proxy engine',
:default => 'disable'
attribute 'lighttpd/debug/dump_unknown_headers',
:display_name => 'debug unknown headers',
:description => 'Dump unknown headers to disk',
:default => 'disable'
attribute 'lighttpd/debug/log_request_handling',
:display_name => 'debug log request handling',
:description => 'Log request handling',
:default => 'disable'
attribute 'lighttpd/debug/log_state_handling',
:display_name => 'debug log state handling',
:description => 'Log state handling',
:default => 'disable'
attribute 'lighttpd/debug/log_condition_handling',
:display_name => 'debug log condition handling',
:description => 'Log condition handling',
:default => 'disable'
attribute 'lighttpd/debug/log_response_header',
:display_name => 'debug log response header',
:description => 'Log response headers',
:default => 'disable'