zigomir/rainbox

★ 0Forks 0RubyGitHub ↗Compare

README

Rainbox

Learning Chef.

Setup

Install VirtualBox and then Vagrant.

gem install berkshelf
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-omnibus
git clone [email protected]:zigomir/rainbox.git ~/.rainbox

# Windows users
cd C:\Users\<my-user>
git clone git://github.com/zigomir/rainbox.git .rainbox

Usage for your projects

Create Vagrantfile and Berksfile

touch Vagrantfile && touch Berksfile

Berksfile content:

cookbook 'rainbox', path: '~/.rainbox'

Vagrantfile content:

eval(File.open("#{Dir.home}/.rainbox/Vagrantfile").read, binding, __FILE__, __LINE__)

Configure vagrantconfig.yml for project

project_name: <your-project-name>
box_name: precise64
box_url: http://files.vagrantup.com/precise64.box
memory: 512
guest_ip: 3.3.3.3

ports:
  - {guest: 3000, host: 3000}

chef_conf:
  servers:
    - apache2

  databases:
    - postgres

  packages:
    - vim

  languages:
    ruby:
      version: 2.0.0-p353

Run it!

berks install
vagrant up

Cookbook development

Add recipes to metadata.rb with depends and then include them in recipes/default.rb with include_recipe.

Then run berks install.

Resources

Plan / TODO:

Setup fresh Ubuntu with docker and then install stuff with docker, create an image, use images for prod servers

Contributors

zigomir

Issues