Update VB 1.1 dev Vagrantfile config syntax to the new one
This commit is contained in:
parent
ccb592d448
commit
08218e209a
1 changed files with 5 additions and 8 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue