Book Image

Configuration Management with Chef-Solo

By : Rahman
Book Image

Configuration Management with Chef-Solo

By: Rahman

Overview of this book

This is a step-by-step guide, full of hands-on examples of real-world deployment tasks. Each topic is explained and placed in context, while also pointing out the key details of the concepts used. This book is aimed at system administrators and system engineers who have an understanding of configuration management tools and infrastructure. For novice administrators, it contains easy-to-use application recipes to get started immediately.
Table of Contents (8 chapters)

Exploring Knife


In a Chef infrastructure, Knife runs from the command line and interacts between the Chef server and chef-client. It helps manage cookbooks, nodes, roles, and so on.

As we are working with Chef-Solo, we will use Knife to initialize and download our cookbooks. In an enterprise Chef environment, Knife comes with many handy commands and can be used for managing different nodes and uploading cookbooks, data bags, roles, and much more. A complete list of Knife commands can be found at http://docs.opscode.com/.

Also, Chef provides chef-dk, which includes all the necessary packages you need to get started with Chef. It includes Berkshelf 3.0 and Test Kitchen (an integration testing framework).

There are no extra steps involved in the installation of Knife. Knife is a part of Chef server and gets installed with Chef. As we have already installed Chef on our machine, let's confirm the installation of Knife using the following command:

$ knife –v

The preceding command will give out...