Skip to content

Instantly share code, notes, and snippets.

@wodka
Created December 10, 2014 13:45
Show Gist options
  • Save wodka/e8f18355469c8dbbb80d to your computer and use it in GitHub Desktop.
Save wodka/e8f18355469c8dbbb80d to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", ip: "10.0.0.5"
# hack to get nfs working under windows as well - because of speed mandatory with symfony...
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || Vagrant.has_plugin?("vagrant-winnfsd")
config.vm.synced_folder "../", "/var/www/app", :nfs => nfs_setting
config.vm.provider "virtualbox" do |vb|
# # Don't boot with headless mode
# vb.gui = true
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
vb.memory = 2048
vb.cpus = 2
end
config.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "main"
chef.add_recipe "apache2"
chef.add_recipe "php"
chef.add_recipe "mongo"
chef.add_recipe "mysql"
chef.add_recipe "redis"
chef.add_recipe "elasticsearch"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment