covmpg
Last Updated: July 27, 2016
·
2.068K
· pierre-o
Myself

Chef debug

If you want to learn how a chef run works or debug a recipe, I advise you to turn on the debug log level!

On Vagrant :

....
config.vm.provision :chef_solo do |chef|
  #If you need to debug a recipe
  chef.log_level = :debug
....

On chef-solo :

chef-solo --log_level DEBUG ...

And voila!

Say Thanks
Respond

1 Response
Add your response

7066
Myself

also :

chef-client --node-name "Jenkins" --log_level debug

over 1 year ago ·
Filed Under