- Virtualbox installed
- Vagrant installed
- Vagrant sahara plugin installed
- Vagrant box
win2012r2x64
available
- Copy
PrepareMachine.ps1
toVagrantAction.ps1
- Run
vagrant up
- Run
vagrant sandbox on
- Copy
ChocolateyAction.ps1
toVagrantAction.ps1
- replace{{action}}
withinstall
,{{package}}
, and{{version}}
. - Run
vagrant provision
- capture output (this is the install log), note the exit code. - Copy
ChocolateyAction.ps1
toVagrantAction.ps1
- replace{{action}}
withuninstall
,{{package}}
, and{{version}}
. - Run
vagrant provision
- capture output (this is the uninstall log), note the exit code. - Run
vagrant sandbox rollback
to set the machine ready for previous.