Update chef_zero provisioner documentation

This commit is contained in:
Michael Lopez 2015-02-15 10:11:22 +01:00
parent 2f3e550a81
commit 530cb331ae
1 changed files with 24 additions and 3 deletions

View File

@ -31,8 +31,29 @@ This section lists the complete set of available options for the Chef Zero
provisioner. More detailed examples of how to use the provisioner are
available below this section.
* `nodes_path` (string) - A path where the Chef nodes are stored. Be default,
no node path is set.
* `cookbooks_path` (string or array) - A list of paths to where cookbooks
are stored. By default this is "cookbooks", expecting a cookbooks folder
relative to the Vagrantfile location.
* `data_bags_path` (string) - A path where data bags are stored. By default, no
data bag path is set.
* `environments_path` (string) - A path where environment definitions are
located. By default, no environments folder is set.
* `environment` (string) - The environment you want the Chef run to be
a part of. This requires Chef 11.6.0 or later, and that `environments_path`
is set.
* `roles_path` (string or array) - A list of paths where roles are defined.
By default this is empty. Multiple role directories are only supported by
Chef 11.8.0 and later.
* `synced_folder_type` (string) - The type of synced folders to use when
sharing the data required for the provisioner to work properly. By default
this will use the default synced folder type. For example, you can set this
to "nfs" to use NFS synced folders.
In addition to all the options listed above, the Chef Zero provisioner supports
the [common options for all Chef provisioners](/v2/provisioning/chef_common.html).
@ -50,8 +71,8 @@ Vagrant.configure("2") do |config|
config.vm.provision "chef_zero" do |chef|
# Specify the local paths where Chef data is stored
chef.cookbooks_path = "cookbooks"
chef.data_bags_path = "data_bags"
chef.roles_path = "roles"
chef.nodes_path = "nodes"
# Add a recipe
chef.add_recipe "apache"