linked_clone if Vagrant::VERSION =~ /^1.8/

To void this message on pre Vagrant 1.8

```bash
There are errors in the configuration of this machine. Please fix
the following errors and try again:

VirtualBox Provider:
* The following settings shouldn't exist: linked_clone
```
This commit is contained in:
Alvaro Miranda 2015-12-22 21:47:01 +13:00
parent f7bdcb1b2b
commit 5e210bf3ab
1 changed files with 8 additions and 0 deletions

View File

@ -54,6 +54,14 @@ config.vm.provider "virtualbox" do |v|
end
```
To have backward compatibility:
```ruby
config.vm.provider 'virtualbox' do |v|
v.linked_clone = true if Vagrant::VERSION =~ /^1.8/
end
```
<div class="alert alert-info">
<strong>Note:</strong> the generated master VMs are currently not removed
automatically by Vagrant. This has to be done manually. However, a master