Skip to content

Instantly share code, notes, and snippets.

@sneal
Created October 25, 2013 14:51
Show Gist options
  • Save sneal/7155901 to your computer and use it in GitHub Desktop.
Save sneal/7155901 to your computer and use it in GitHub Desktop.
This Vagrantifle snippet is using a "reboot" provisioner in vagrant-windows. The provisioner reboots the guest and then blocks vagrant execution until the VM finished its reboot.
# Install .NET 4.5 first
config.vm.provision :chef_solo do |chef|
chef.log_level = :info
chef.add_recipe 'dotnetframework'
chef.add_recipe 'minitest-handler'
end
# Need to reboot before .NET 4.5 install finishes
config.vm.provision :reboot
# Now we can finally run the VS recipe
config.vm.provision :chef_solo do |chef|
chef.log_level = :info
chef.add_recipe 'visualstudio'
chef.add_recipe 'minitest-handler'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment