Created
October 5, 2014 16:23
-
-
Save avevlad/dc7813a3786763cc9b26 to your computer and use it in GitHub Desktop.
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
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