O'Reilly logo

Configuration Management with Chef-Solo by Naveed ur Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Developing Cookbooks

We have already discussed the folder structure and some basic content of cookbooks. It's difficult to create folders one by one in a specific manner and create files inside them.

In this chapter, we will discuss cookbooks in detail; we will also discuss how we can avoid errors while developing cookbooks. Chef comes with some handy tools to initialize the folder structures of cookbooks.

In this chapter, we will look at the following topics:

  • What is Knife?
  • The installation of Knife
  • Berkshelf
  • Cookbooks' contents
  • Recipes, metadata, attributes, and resources

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required