Slide 18
Slide 18 text
-*- 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"
}
}
}
end
end