Last Updated: July 27, 2016
· pierre-o

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!

1 Response
Add your response

also :

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

over 1 year ago ·