We forked boxen/puppet-redis
because we need to use a specific version of redis (the one in puppet-redis 3.1.0), but that version uses the oudated sha1
directive in its brewfile.
This fork updates 3.1.0 to use the sha256
directive. To pull it into your boxen repo, put the following in your boxen Puppetfile:
github "redis", "3.1.1", repo: "dobtco/puppet-redis"`
include redis
- boxen
- homebrew
- stdlib
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
For hubot development, particularly using the redis-brain, you'll need the following:
export REDISTOGO_URL=$BOXEN_REDIS_URL
$redis = Redis.new(:host => '127.0.0.1', :port => ENV['BOXEN_REDIS_PORT'] || '6379'