Project

elzar

0.0
No commit activity in last 3 years
No release in over 3 years
Provides Chef cookbooks for a production Rails environment. Also supports Chef-erizing a Rails app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 0.9.2.2
>= 0

Runtime

~> 1.5.0
~> 2.0.0
~> 1.3.0
~> 0.1.3
 Project Readme

Description

This gem enables a Rails app to define custom Chef recipes while still using an awesome default set of Chef recipes. Includes recipes for Ruby 1.9, postgresql, and nginx/passenger.

Usage

To use Elzar with your Rails app, see USAGE.md.

Local Development

If you'd like to try these Chef cookbooks with Vagrant:

$ git clone git@github.com:relevance/elzar.git
$ cd elzar
$ gem install bundler

# creates a `provision` directory for local vagrant use
$ rake bam

$ cd provision
$ vim dna.json # edit DNA file to give a name to your Rails app with no whitespace (e.g., "my_sample_app")
$ bundle install

## Using Vagrant

Download and install VirtualBox (as instructed in the Vagrant
[Getting Started guide](http://vagrantup.com/docs/getting-started/index.html)). Then set up
your bundle and grab the Ubuntu Lucid VM image.

    vagrant box add lucid64 http://files.vagrantup.com/lucid64.box

```sh
## Spin up a new VM and run the Chef recipes on it
$ vagrant up

## SSH into the VM
$ vagrant ssh

## Destroy the VM
$ vagrant destroy

## Re-run Chef recipes on the VM
$ vagrant provision

## Stop/Start the VM
$ vagrant suspend
$ vagrant resume

CLI Development

The CLI tool (bin/elzar) is built on top of GLI which is a command line parser modelled after Git. Normally any exception that occurs while running a command results in only the error message being displayed, not the backtrace. If you would like to view the backtrace you must set the env variable GLI_DEBUG=true.

GLI_DEBUG=true bundle exec bin/elzar foo

Issues

Please file issues on GitHub.