Skip to content

Commit

Permalink
Add Vagrantfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ichilton committed Oct 18, 2013
1 parent 4f943f1 commit 08f75f6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.vagrant
Vagrantfile
Berksfile.lock
*~
*#
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ Also to do is to add tests.

The following cookbooks are required:

**build_essential** - install the required build tools & compilers - https://github.com/opscode-cookbooks/build-essential

**chruby_install** - install chruby. Not currently on the community site, but available here: https://github.com/ichilton/chef_chruby_install

**ruby_install** - install rubies using ruby-install - https://github.com/rosstimson/chef-ruby_install

**Currently only tested on Ubuntu 12.04**

The included Vagrantfile requires the vagrant-berkshelf and vagrant-omnibus plugins:

vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-omnibus


# Usage

Expand Down
16 changes: 16 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.hostname = "rubies-berkshelf"
config.vm.box = "precise-server-cloudimg-amd64-vagrant-disk1"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :private_network, ip: "10.200.200.203"
config.berkshelf.enabled = true
config.omnibus.chef_version = :latest

config.vm.provision :chef_solo do |chef|
chef.run_list = [ "recipe[rubies::default]" ]
end
end

0 comments on commit 08f75f6

Please sign in to comment.