Skip to content

Instantly share code, notes, and snippets.

@DeLongShot
Created January 7, 2015 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeLongShot/fbbda14df20699b2fcae to your computer and use it in GitHub Desktop.
Save DeLongShot/fbbda14df20699b2fcae to your computer and use it in GitHub Desktop.
Example files for my talk "Speeding-Up Rails Dev Onboarding": https://speakerdeck.com/delongshot/speeding-up-rails-dev-onboarding
source "https://supermarket.chef.io"
cookbook "apt"
cookbook "build-essential"
cookbook "chruby"
cookbook "postgresql", "~> 3.4.14"
cookbook "nginx"
cookbook "phantomjs"
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.network "forwarded_port", guest: 3000, host: 3333
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.network "private_network", ip: "192.168.33.10"
config.berkshelf.enabled = true
config.omnibus.chef_version = "11.16.0"
config.vm.provision "chef_solo" do |chef|
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "chruby::system"
chef.add_recipe "postgresql::client"
chef.add_recipe "postgresql::server"
chef.add_recipe "nginx"
chef.add_recipe "phantomjs"
chef.json = {
"chruby" => {
"rubies" => {
"2.1.3" => true
},
"default" => "2.1.3"
},
"postgresql" => {
"version" => "9.4",
"password" => {
"postgres" => "example" #change this
}
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment