» Chef Zero Provisioner
The Vagrant Chef Zero provisioner allows you to provision the guest usingChef, specifically with.
This new provisioner is a middle ground between running a full blownChef Server and using the limited Chef Soloprovisioner. It runs a local in-memory Chef Server and fakes the validationand client key registration.
Warning: If you are not familiar with Chef and Vagrant already,we recommend starting with the . However, if you are comfortable with Vagrant already, Vagrantis the best way to learn Chef.
This section lists the complete set of available options for the Chef Zeroprovisioner. More detailed examples of how to use the provisioner areavailable below this section.
data_bags_path
(string or array) - A path where data bags are stored. Bydefault, no data bag path is set. Chef 12 or higher is required to use thearray option. Chef 11 and lower only accept a string value.(string) - A path where environment definitions arelocated. By default, no environments folder is set.
environment
(string) - The environment you want the Chef run to bea part of. This requires Chef 11.6.0 or later, and that is set.
In addition to all the options listed above, the Chef Zero provisioner supportsthe .
» Usage
The Chef Zero provisioner is configured basically the same way as the Chef Soloprovisioner. See the for more information.
A basic example could look like this: