Vagrant also supports two methods of using Chef:
Let's look at how to configure Vagrant with Chef using these two different methods.
Chef solo is the Chef equivalent of Puppet standalone.
The simplest way to use this within our project is simply to provide a Chef run list to Vagrant, this tells Vagrant which cookbooks should be applied. The following is an example of telling Vagrant to use the PHP cookbook:
config.vm.provision :chef_solo do |chef| chef.add_recipe "php" end
This takes the PHP cookbook from the default cookbooks folder and applies it to the virtual machine.
As with Puppet, Vagrant makes some assumptions by default, these are: