Update VB 1.1 dev Vagrantfile config syntax to the new one

This commit is contained in:
Fabio Rehm 2013-03-09 16:23:43 -03:00
parent ccb592d448
commit 08218e209a

View file

@ -11,19 +11,16 @@ def local_cache(box_name)
cache_dir cache_dir
end end
Vagrant::Config.run do |config| Vagrant.configure('2') do |config|
config.vm.box = "quantal64" config.vm.box = "quantal64"
config.vm.box_url = "https://github.com/downloads/roderik/VagrantQuantal64Box/quantal64.box" config.vm.box_url = "https://github.com/downloads/roderik/VagrantQuantal64Box/quantal64.box"
config.vm.share_folder "vagrant-root", "/vagrant", "../" config.vm.synced_folder "../", "/vagrant", name: 'vagrant-root'
cache_dir = local_cache(config.vm.box) cache_dir = local_cache(config.vm.box)
config.vm.share_folder "vagrant-cache", "/var/cache/apt/archives", cache_dir config.vm.synced_folder cache_dir,
"/var/cache/apt/archives/",
if defined? VagrantVbguest::Config name: "vagrant-cache"
config.vbguest.auto_update = false
config.vbguest.no_remote = true
end
config.vm.provision :shell, :path => 'shell-provisioning/upgrade-kernel' config.vm.provision :shell, :path => 'shell-provisioning/upgrade-kernel'