From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/vagrant/provisioning%2Fchef_zero.html | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 devdocs/vagrant/provisioning%2Fchef_zero.html (limited to 'devdocs/vagrant/provisioning%2Fchef_zero.html') diff --git a/devdocs/vagrant/provisioning%2Fchef_zero.html b/devdocs/vagrant/provisioning%2Fchef_zero.html new file mode 100644 index 00000000..9adb69bf --- /dev/null +++ b/devdocs/vagrant/provisioning%2Fchef_zero.html @@ -0,0 +1,29 @@ +

Chef Zero Provisioner

Provisioner name: chef_zero

The Vagrant Chef Zero provisioner allows you to provision the guest using Chef, specifically with Chef Zero/local mode.

This new provisioner is a middle ground between running a full blown Chef Server and using the limited Chef Solo provisioner. It runs a local in-memory Chef Server and fakes the validation and client key registration.

Warning: If you are not familiar with Chef and Vagrant already, I recommend starting with the shell provisioner. However, if you are comfortable with Vagrant already, Vagrant is the best way to learn Chef.

+

Options

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.

In addition to all the options listed above, the Chef Zero provisioner supports the common options for all Chef provisioners.

Usage

The Chef Zero provisioner is configured basically the same way as the Chef Solo provisioner. See the Chef Solo documentations for more information.

A basic example could look like this:

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.nodes_path = "nodes"
+    chef.roles_path = "roles"
+
+    # Add a recipe
+    chef.add_recipe "apache"
+
+    # Or maybe a role
+    chef.add_role "web"
+  end
+end
+
+

+ © 2010–2018 Mitchell Hashimoto
Licensed under the MPL 2.0 License.
+ https://www.vagrantup.com/docs/provisioning/chef_zero.html +

+
-- cgit v1.2.3