Skip to content

Commit 7d402c7

Browse files
author
Timoses
committed
Disable vbguest auto update only when plugin is installed
1 parent 89352a8 commit 7d402c7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Vagrantfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ k8s_hosts = [
1010
Vagrant.configure("2") do |config|
1111
config.vm.box = "centos/8"
1212

13-
# Disable VirtualBox auto update
14-
config.vbguest.auto_update = false
13+
if Vagrant.has_plugin?("vagrant-vbguest")
14+
# Disable VirtualBox auto update
15+
# It significantly increases VMs
16+
# provisioning time.
17+
config.vbguest.auto_update = false
18+
end
1519

1620
config.vm.define "client" do |client|
1721
client.vm.hostname = "client"

0 commit comments

Comments
 (0)