From 3ae5f06560880457574b029f962d5afad0e146b7 Mon Sep 17 00:00:00 2001 From: Giovane Date: Thu, 17 Dec 2015 14:17:49 -0200 Subject: Fixes sync on debian/jessie box #556 - Will install vbguest plugins if needed - Sticks box version to avoid rsync used on newer versions - Runs vbguest daemon on guest machine --- Vagrantfile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Vagrantfile') diff --git a/Vagrantfile b/Vagrantfile index 9f961dc9..f30ea972 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,8 +3,18 @@ VAGRANTFILE_API_VERSION = "2" +unless Vagrant.has_plugin?('vagrant-vbguest') + system "vagrant plugin install vagrant-vbguest" + puts "Restarting vagrant process..." + exec "vagrant #{ARGV.join' '}" +end + Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "debian/jessie64" + config.vm.box_version = "= 8.2.1" + + config.vm.provision "shell", inline: "sudo /etc/init.d/vboxadd setup" + config.vm.provision "shell", inline: "apt-get install -y puppet" config.vm.define "source", primary: true do |source| source.vm.provision "puppet" do |puppet| -- cgit v1.2.3