Skip to content

Instantly share code, notes, and snippets.

@avevlad
Created October 5, 2014 16:23
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 avevlad/dc7813a3786763cc9b26 to your computer and use it in GitHub Desktop.
Save avevlad/dc7813a3786763cc9b26 to your computer and use it in GitHub Desktop.
VAGRANTFILE_API_VERSION = "2"
DB_TYPE = "mysql" # postgresql/sqlite
DB_ROOT_PWD = "root"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "10.10.10.10"
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", :smb => true
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--memory", 1024]
end
config.vm.provision :shell do |shell|
shell.path = "vagrant/provision.sh"
shell.args = "#{DB_TYPE} #{DB_ROOT_PWD}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment