Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional reloading? #2

Open
spuder opened this issue Feb 23, 2015 · 2 comments
Open

Conditional reloading? #2

spuder opened this issue Feb 23, 2015 · 2 comments

Comments

@spuder
Copy link

spuder commented Feb 23, 2015

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?

@TJM
Copy link

TJM commented May 1, 2015

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.

@danowar2k
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants