Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Last active December 10, 2015 01:48
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 mitchellh/98f5a0df6a05286dfb73 to your computer and use it in GitHub Desktop.
Save mitchellh/98f5a0df6a05286dfb73 to your computer and use it in GitHub Desktop.
# 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