Redis Puppet Module for Boxen

Usage

include redis

Required Puppet Modules

  • boxen
  • homebrew
  • stdlib

Environment

Once installed, you can access the following variables in your environment, projects, etc:

  • BOXEN_REDIS_PORT: the configured redis port
  • BOXEN_REDIS_URL: the URL for redis, including localhost & port

Hubot

For hubot development, particularly using the redis-brain, you'll need the following:

export REDISTOGO_URL=$BOXEN_REDIS_URL

Ruby

$redis = Redis.new(:host => '127.0.0.1', :port => ENV['BOXEN_REDIS_PORT'] || '6379'