[chef] Re: Re: Delete node and client when destroying Vagrant VM


Chronological Thread 
  • From: Cassiano Leal < >
  • To:
  • Subject: [chef] Re: Re: Delete node and client when destroying Vagrant VM
  • Date: Thu, 6 Dec 2012 13:48:49 -0200

Nice one.

Just one correction to my original post, the link to my gist is https://gist.github.com/4223941 and not the one I sent before (that was a reference).

I like your REST approach, though, and will certainly have a look at that.

Thanks,
-- 
Cassiano Leal

On Thursday, December 6, 2012 at 12:04, Jesse Nelson wrote:

meant to say "no subshell" not "syscall" 


On Thu, Dec 6, 2012 at 11:04 PM, Jesse Nelson < " target="_blank"> > wrote:
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.


On Thu, Dec 6, 2012 at 9:03 PM, Cassiano Leal < " target="_blank"> > wrote:
I was trying to find a solution for that on the web, and the two references that made more sense were:


Neither worked out of the box, so I hacked my own solution, adapting a bit from each, and came to this:


Feel free to use it if you find it useful. Comments and suggestions are welcome.

Cheers!
-- 
Cassiano Leal







Archive powered by MHonArc 2.6.16.

§