-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetadata.rb
103 lines (90 loc) · 3.13 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
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
name "varnish"
maintainer "Varnish Software"
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs and configures varnish"
version "0.8.1"
%w{ubuntu debian centos redhat}.each do |os|
supports os
end
provides "varnish::default"
recipe "varnish::default", "Install and configure Varnish Cache"
recipe "varnish::stop", "stops varnish"
recipe "varnish::start", "starts varnish"
recipe "varnish::restart", "restarts varnish"
attribute 'varnish/version',
:display_name => "Varnish version",
:description => "What version of Varnish to install",
:choice => [ '2.1', '3.0' ],
:type => "string",
:recipes => [ 'varnish::default' ],
:default => "3.0"
attribute 'varnish/listen_address',
:display_name => "Address to listen on for HTTP traffic",
:description => "What address Varnish should listen on. Blank means all IP addresses",
:type => "string",
:required => "optional",
:recipes => [ 'varnish::default' ],
:default => ""
attribute 'varnish/listen_port',
:display_name => "Port to listen on for HTTP traffic",
:description => "Any extra command line parameters for Varnish",
:type => "string",
:required => "optional",
:recipes => [ 'varnish::default' ],
:default => "80"
attribute 'varnish/admin_address',
:display_name => "Administrative interface address",
:description => "What address Varnish should listen on for administrative connections. Blank means all IP addresses",
:type => "string",
:required => "optional",
:recipes => [ 'varnish::default' ],
:default => ""
attribute 'varnish/admin_port',
:display_name => "Administrative interface port",
:description => "What port the administrative port should run on.",
:type => "string",
:required => "optional",
:recipes => [ 'varnish::default' ],
:default => ""
attribute 'varnish/min_threads',
:display_name => "Minimum number of threads",
:description => "The minimum number of threads Varnish should run with",
:type => "string",
:required => "recommended",
:recipes => [ 'varnish::default' ],
:default => "10"
attribute 'varnish/max_threads',
:display_name => "Maximum number of threads",
:description => "The minimum number of threads Varnish should use",
:type => "string",
:required => "recommended",
:recipes => [ 'varnish::default' ],
:default => "1000"
attribute 'varnish/storage_spec',
:display_name => "Storage specification",
:description => "What storage and sizing information",
:type => "string",
:required => "recommended",
:recipes => [ 'varnish::default' ],
:default => "auto"
attribute 'varnish/secret',
:display_name => "Authentication secret",
:description => "This is a random string used for authenticating with Varnish",
:type => "string",
:required => "required",
:recipes => [ 'varnish::default' ]
attribute 'varnish/parameters',
:display_name => "Extra parameters",
:description => "Any extra command line parameters for Varnish",
:type => "string",
:required => "optional",
:recipes => [ 'varnish::default' ],
:default => ""
attribute 'varnish/remote_vcl',
:display_name => "VCL URL",
:description => "Where to fetch the VCL from.",
:type => "string",
:required => "optional",
:recipes => [ 'varnish::default' ],
:default => ""