Created
January 7, 2015 00:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://supermarket.chef.io" | |
cookbook "apt" | |
cookbook "build-essential" | |
cookbook "chruby" | |
cookbook "postgresql", "~> 3.4.14" | |
cookbook "nginx" | |
cookbook "phantomjs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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