Book Image

Vagrant Virtual Development Environment Cookbook

Book Image

Vagrant Virtual Development Environment Cookbook

Overview of this book

Table of Contents (17 chapters)
Vagrant Virtual Development Environment Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring Vagrant environments with Chef


Vagrant environments can be provisioned using the Chef (http://www.getchef.com/chef/) configuration management tool. Chef is a configuration management tool that defines system resources with reusable components called recipes. The Chef client interprets these recipes into resources (such as packages, files, and so on) to be configured.

Chef recipes can also be applied in one of two ways:

  • Applying local Chef recipes with the chef-solo tool

  • Contacting a centralized Chef Server to obtain recipes to be applied to a local node by the client application

The client-server and local modes of Chef operation are very similar to the architecture deployed by Puppet in the previous recipe, with the architectural choices of solo or client-server operation being determined by project requirements.

This recipe will demonstrate the use of the Vagrant chef-solo provisioner to apply Chef recipes to install and configure a basic Apache web server.

Getting ready

Using the...