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

Warning message on vagrant halt #53

Open
HeathNaylor opened this issue Nov 12, 2015 · 3 comments
Open

Warning message on vagrant halt #53

HeathNaylor opened this issue Nov 12, 2015 · 3 comments

Comments

@HeathNaylor
Copy link

It seems far too easy to accidentally run harmful vagrant operations on production environments provisioned with Vagrant. Any way to add warnings or disable behaviors?

@displague
Copy link
Owner

If you do happen to 'vagrant destroy -f' Linode support can undo the damage if you contact them soon after. Reconnecting that Linode to your vagrant file would involve recreating the files in .vagrant/machines (might be worth backing this directory up if you are using vagrant-linode for production machines rather than development).

  • .vagrant/machines/default/linode/id
  • .vagrant/machines/default/linode/creator_uid
  • .vagrant/machines/default/linode/index_uuid

That said, vagrant destroy prompts. Is vagrant halt (a shutdown) really harmful / destructive?

@HeathNaylor
Copy link
Author

If you compromise server up-time (SLA) then yes, it is harmful.

@displague
Copy link
Owner

This could be doable with a config option that would force halt to prompt or fail. (disable_halt = true)

I'd really like to see more interest in this idea before proceeding with it. This still seems like a more general vagrant (upstream) concern, than something vagrant-linode should be concerned with.

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

2 participants