Hello Check the chef plugin as example it allows delete before destroy.
https://github.com/mitchellh/vagrant/blob/9c299a2a357fcf87f356bb9d56e18a037a53d138/plugins/provisioners/chef/provisioner/chef_client.rb#L36-L44 in the documentation check cleanup: https://www.vagrantup.com/docs/provisioning/chef_client.html Alvaro. On Sun, May 28, 2017 at 7:44 PM, Michel Chouinard < [email protected]> wrote: > Hi, > > Reading the documentation about plugins development I remark that all > hooks are for after an action took place. > > I'm not actually a plugin developer. Not much time to give it a try but... > > Working with an existing plugin, having trouble with it on the destroy of > my machine. I then decided to check the plugin code and nothing could be > done directly in the plugin. It work fine according to what is available. > > My suggestion would be for vagrant to give hooks for before an action take > place. Example: machine_action_halt could have a > machine_action_before_halt that would be triggered before halting the > machine, etc... > > Just my two cents ;) > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/69cc9760-0067-4710-8010-167546929fbd%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/69cc9760-0067-4710-8010-167546929fbd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exWUDDvVP14mna0qASnBCEi7J8P4AXoLCE%2BhTdgh7d_HA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
