- From: Jesse Nelson <
>
- To: chef <
>
- Subject: [chef] Re: Delete node and client when destroying Vagrant VM
- Date: Thu, 6 Dec 2012 23:04:00 +0900
You can check out the code in my chef-sandbox that does this using the vagrant provisioner class and chef client code directly (no syscall:
::Chef::Config.from_file(File.join( File.dirname(__FILE__), 'chef', 'knife.rb'))
To point to your knife.rb location.
Pop the rest in your vagrant file, and you should be good.
- [chef] Delete node and client when destroying Vagrant VM, Cassiano Leal, 12/06/2012
- [chef] Re: Delete node and client when destroying Vagrant VM, Jesse Nelson, 12/06/2012
- [chef] Re: Delete node and client when destroying Vagrant VM, Jesse Nelson, 12/06/2012
- [chef] Re: Re: Delete node and client when destroying Vagrant VM, Cassiano Leal, 12/06/2012
- [chef] Re: Re: Re: Delete node and client when destroying Vagrant VM, steve ., 12/07/2012
- [chef] Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Cassiano Leal, 12/07/2012
- [chef] Re: Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Adam Jacob, 12/07/2012
- [chef] Re: Re: Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Daniel DeLeo, 12/07/2012
- [chef] Re: Re: Re: Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Cassiano Leal, 12/07/2012
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Jamie Winsor, 12/07/2012
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Cassiano Leal, 12/08/2012
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Delete node and client when destroying Vagrant VM, Jamie Winsor, 12/08/2012
Archive powered by MHonArc 2.6.16.