vagrant-reload icon indicating copy to clipboard operation
vagrant-reload copied to clipboard

Conditional reloading?

Open spuder opened this issue 10 years ago • 2 comments

Is it possible to do a conditional reload?

For example, my windows vagrant box requires authentication to active directory which requires a reboot.

After the reboot, chef attempts to run. If there is a problem with the chef cookbook, I debug it, then I run vagrant provision again to force another chef run .

I'd like to only do a reboot the first time a vagrant box starts, and skip it on subsequent runs. Is this possible?

spuder avatar Feb 23 '15 21:02 spuder

This would be nice in the Linux world too, to reboot if there was a kernel update applied. It would be nice if it was conditional.

TJM avatar May 01 '15 03:05 TJM

Maybe you could add something like a variable that contains the path to a file on the machine. If the file exists, the file would then be removed and the machine would be rebooted.

danowar2k avatar Feb 04 '19 13:02 danowar2k