How to used chef-shell debugging tool


#1

Hi,

I wan’t to do the debugging of chef,so that chef provides debugging tool
chef-shell .
But I am not able to understand that how to implement it means How can i used
this tool for Debugging purpose.

Thanks and Regards,
Seema Khalkar.


#2

Hey,

seemakhalkar14@gmail.com writes:

Hi,

I wan’t to do the debugging of chef,so that chef provides debugging tool
chef-shell .
But I am not able to understand that how to implement it means How can i used
this tool for Debugging purpose.

One way using just chef builtin features is via the 'breakpoint’
resource[0] combined with chef-shell. Then within a run you can use
chef_run.rewind, chef_run.resume, chef_run.skip_forward,
chef_run.skip_backward to move around in the recipe execution. You can
find detailed examples on chef-shell docs page[1]

[0] http://docs.opscode.com/resource_breakpoint.html
[1] http://docs.opscode.com/chef_shell.html


-sean