Skip to content

tdhite/redis-cookbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a cookbook for managing Redis with Chef. It uses the default settings, but can also be configured via attributes.

Recipes

default

Latest stable Redis, built from source.

Tested only on Ubuntu, 10.04.3, 64bit.

If you've been using this cookbook in the past, there are some important changes that you should take into account before upgrading to the latest version

  1. I'm now using a separate versioning, no longer sticking to the redis one. If the previous cookbook version was 2.4.2 (redis version), this one is 2.0.0.

  2. I made some changes in how configs and restarts are being handled, an upgrade from a previous version will not be seamless. The 2.0.0 is the hint.

  3. I only make the important settings configurable via the cookbook's attributes. The ones which I don't personally use, I've left out. Feel free to fork the cookbook, add your own and submit a pull request.

  4. All config values are heavily documented. Open up the attributes file and you'll see what I mean. They were taken directly from the official redis repository, version 2.4.16.

  5. Redis is now configured so that by default it doesn't persist the data to disk. Before, snapshotting was turned on by default. Just to make this clear, the snapshotting and appendfile are turned off by default. If you need these options, configure them via role attributes.

  6. The redis user is given a shell: /bin/sh. Previously, this has been set to /bin/false. Not sure if this is the best approach, but this enables upstart jobs via su - redis -c 'some-command'.

slave

##Installs a slave (searches for a master).

master

##Installs a master (does no search for slaves since not necessary).

init

##Sets up the appropriate init functionality (SysV or Upstart). See the attributes to select which system.

package

Installs redis from the package manager.

This may or may not provide the most recent release depending the package provider's ability to update accordingly.

source

Installs redis from source code.

License and Author

Author:: Gerhard Lazu gerhard@lazu.co.uk Author:: ExactTarget, Inc. cookbooks@exacttarget.com

Updates for dynamic cluster search: Copyright:: 2012 , ExactTarget, Inc.

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.

About

Chef cookbook for Redis

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%