-
Notifications
You must be signed in to change notification settings - Fork 3
/
metadata.rb
112 lines (90 loc) · 4.23 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
104
105
106
107
108
109
110
111
112
maintainer "Benjamin Black"
maintainer_email "b@b3k.us"
license "Apache 2.0"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "3.0.4"
description "Redis: a fast, flexible datastore offering an extremely useful set of data structure primitives"
depends "runit"
depends "install_from"
depends "metachef"
recipe "redis::default", "Base configuration for redis"
recipe "redis::install_from_package", "Install From Ubuntu Package -- easy but lags in version"
recipe "redis::install_from_release", "Install From Release"
recipe "redis::server", "Redis server with runit service"
recipe "redis::client", "Client support for Redis database"
%w[ debian ubuntu ].each do |os|
supports os
end
attribute "redis/home_dir",
:display_name => "",
:description => "",
:default => "/usr/local/share/redis"
attribute "redis/pid_file",
:display_name => "Redis PID file path",
:description => "Path to the PID file when daemonized.",
:default => "/var/run/redis.pid"
attribute "redis/log_dir",
:display_name => "Redis log dir path",
:description => "Path to the log directory when daemonized -- will be stored in [log_dir]/redis.log.",
:default => "/var/log/redis"
attribute "redis/data_dir",
:display_name => "Redis database directory",
:description => "Path to the directory for database files.",
:default => "/var/lib/redis"
attribute "redis/db_basename",
:display_name => "Redis database filename",
:description => "Filename for the database storage.",
:default => "dump.rdb"
attribute "redis/release_url",
:display_name => "URL for redis release package",
:description => "If using the install_from_release strategy, the URL for the release tarball",
:default => "http://redis.googlecode.com/files/redis-:version:.tar.gz"
attribute "redis/glueoutputbuf",
:display_name => "Redis output buffer coalescing",
:description => "Glue small output buffers together into larger TCP packets.",
:default => "yes"
attribute "redis/saves",
:display_name => "Redis disk persistence policies",
:description => "An array of arrays of time, changed objects policies for persisting data to disk.",
:type => "array",
:default => [["900", "1"], ["300", "10"], ["60", "10000"]]
attribute "redis/slave",
:display_name => "Redis replication slave",
:description => "Act as a replication slave to a master redis database.",
:default => "no"
attribute "redis/shareobjects",
:display_name => "Redis shared object compression (default: \"no\")",
:description => "Attempt to reduce memory use by sharing storage for substrings.",
:default => "no"
attribute "redis/conf_dir",
:display_name => "",
:description => "",
:default => "/etc/redis"
attribute "redis/user",
:display_name => "",
:description => "",
:default => "redis"
attribute "redis/version",
:display_name => "",
:description => "",
:default => "2.0.2"
attribute "redis/server/addr",
:display_name => "IP address to bind.",
:description => "IP address to bind.",
:default => "0.0.0.0"
attribute "redis/server/port",
:display_name => "Redis server port",
:description => "TCP port to bind.",
:default => "6379"
attribute "redis/server/timeout",
:display_name => "Redis server timeout",
:description => "Timeout, in seconds, for disconnection of idle clients.",
:default => "300"
attribute "users/redis/uid",
:display_name => "",
:description => "",
:default => "335"
attribute "groups/redis/gid",
:display_name => "",
:description => "",
:default => "335"