diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-12-17 14:17:49 -0200 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-12-17 14:23:18 -0200 |
commit | 3ae5f06560880457574b029f962d5afad0e146b7 (patch) | |
tree | d3d92f5df7268b5009b17d19d9ec89765e69f3ac /Vagrantfile | |
parent | 68780aa001d6e805133232d0699fcb8d83c22f03 (diff) |
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
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 10 |
1 files changed, 10 insertions, 0 deletions
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| |