-
-
Save mitchellh/98f5a0df6a05286dfb73 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
# This shows the new way that provider-specific configuration will be done, | |
# starting with VirtualBox customizations. Historically, these have been | |
# top-level configurations on the Vagrant configuration but since it only | |
# applies to VirtualBox, it has been hoisted into provider configuration. | |
# | |
# Since Vagrant 1.1+ will maintain backwards compatibility, old Vagrantfiles | |
# still work as expected. | |
# OLD (1.0.x): | |
Vagrant::Config.run do |config| | |
config.vm.box = "base" | |
config.vm.customize ["modifyvm", :id, "--memory", "1024"] | |
end | |
# NEW (1.1+): | |
Vagrant.configure("2") do |config| | |
config.vm.box = "base" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment