Permalink
Browse files

Import redis version 3.0.4

  • Loading branch information...
1 parent d0a9771 commit 47bdabc9f11f60abd5152087e06daec14b0c1601 @pikesley pikesley committed Mar 2, 2012
View
@@ -0,0 +1,76 @@
+# redis chef cookbook
+
+Redis: a fast, flexible datastore offering an extremely useful set of data structure primitives
+
+## Overview
+
+Redis, a fast lightweight database
+
+## Recipes
+
+* `client` - Client support for Redis database
+* `default` - Base configuration for redis
+* `install_from_package` - Install From Ubuntu Package -- easy but lags in version
+* `install_from_release` - Install From Release
+* `server` - Redis server with runit service
+
+## Integration
+
+Supports platforms: debian and ubuntu
+
+Cookbook dependencies:
+* runit
+* install_from
+* metachef
+
+
+## Attributes
+
+* `[:redis][:home_dir]` - (default: "/usr/local/share/redis")
+* `[:redis][:pid_file]` - Redis PID file path (default: "/var/run/redis.pid")
+ - Path to the PID file when daemonized.
+* `[:redis][:log_dir]` - Redis log dir path (default: "/var/log/redis")
+ - Path to the log directory when daemonized -- will be stored in [log_dir]/redis.log.
+* `[:redis][:data_dir]` - Redis database directory (default: "/var/lib/redis")
+ - Path to the directory for database files.
+* `[:redis][:db_basename]` - Redis database filename (default: "dump.rdb")
+ - Filename for the database storage.
+* `[:redis][:release_url]` - URL for redis release package (default: "http://redis.googlecode.com/files/redis-:version:.tar.gz")
+ - If using the install_from_release strategy, the URL for the release tarball
+* `[:redis][:glueoutputbuf]` - Redis output buffer coalescing (default: "yes")
+ - Glue small output buffers together into larger TCP packets.
+* `[:redis][:saves]` - Redis disk persistence policies
+ - An array of arrays of time, changed objects policies for persisting data to disk.
+* `[:redis][:slave]` - Redis replication slave (default: "no")
+ - Act as a replication slave to a master redis database.
+* `[:redis][:shareobjects]` - Redis shared object compression (default: "no") (default: "no")
+ - Attempt to reduce memory use by sharing storage for substrings.
+* `[:redis][:conf_dir]` - (default: "/etc/redis")
+* `[:redis][:user]` - (default: "redis")
+* `[:redis][:version]` - (default: "2.0.2")
+* `[:redis][:server][:addr]` - IP address to bind. (default: "0.0.0.0")
+* `[:redis][:server][:port]` - Redis server port (default: "6379")
+ - TCP port to bind.
+* `[:redis][:server][:timeout]` - Redis server timeout (default: "300")
+ - Timeout, in seconds, for disconnection of idle clients.
+* `[:users][:redis][:uid]` - (default: "335")
+* `[:groups][:redis][:gid]` - (default: "335")
+
+## License and Author
+
+Author:: Benjamin Black (<b@b3k.us>)
+Copyright:: 2011, Benjamin Black
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+> readme generated by [cluster_chef](http://github.com/infochimps/cluster_chef)'s cookbook_munger
@@ -0,0 +1,51 @@
+#
+# Locations
+#
+
+default[:redis][:conf_dir] = "/etc/redis"
+default[:redis][:log_dir] = "/var/log/redis"
+default[:redis][:data_dir] = "/var/lib/redis"
+
+default[:redis][:home_dir] = "/usr/local/share/redis"
+default[:redis][:pid_file] = "/var/run/redis.pid"
+
+default[:redis][:db_basename] = "dump.rdb"
+
+default[:redis ][:user] = 'redis'
+default[:users ]['redis'][:uid] = 335
+default[:groups]['redis'][:gid] = 335
+
+#
+# Server
+#
+
+default[:redis][:server][:addr] = "0.0.0.0"
+default[:redis][:server][:port] = "6379"
+
+#
+# Install
+#
+
+default[:redis][:version] = "2.0.2"
+default[:redis][:release_url] = "http://redis.googlecode.com/files/redis-:version:.tar.gz"
+
+#
+# Tunables
+#
+
+default[:redis][:server][:timeout] = "300"
+default[:redis][:glueoutputbuf] = "yes"
+
+default[:redis][:saves] = [["900", "1"], ["300", "10"], ["60", "10000"]]
+
+default[:redis][:slave] = "no"
+if (node[:redis][:slave] == "yes")
+ # TODO: replace with discovery
+ default[:redis][:master_server] = "redis-master." + domain
+ default[:redis][:master_port] = "6379"
+end
+
+default[:redis][:shareobjects] = "no"
+if (node[:redis][:shareobjects] == "yes")
+ default[:redis][:shareobjectspoolsize] = 1024
+end
Oops, something went wrong.

0 comments on commit 47bdabc

Please sign in to comment.