Last Updated: February 25, 2016
·
1.826K
· gmr

Debug chef-solo runs in Vagrant

Vagrant creates the directory /tmp/vagrant-chef-1 to run chef-solo jobs. There are two files it creates under that directory:

  • solo.rb: The configuration file for chef-solo
  • dna.json: The JSON attributes file for the chef-solo run

To debug your Vagrant based chef-solo runs, then login to your vagrant box with vagrant ssh and then:

cd /tmp/vagrant-chef-1
chef-solo -c solo.rb -j dns.json