Skip to content

Instantly share code, notes, and snippets.

@avevlad
Created Oct 5, 2014
Embed
What would you like to do?
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