Book Image

Configuration Management with Chef-Solo

By : Naveed ur Rahman
Book Image

Configuration Management with Chef-Solo

By: Naveed ur Rahman

Overview of this book

Table of Contents (13 chapters)

Chapter 5. More about Cookbooks and Recipes

In the previous chapter, we started developing a WordPress recipe and successfully created a stack with Apache, PHP, and MySQL. We also discussed recipes, attributes, and metadata. In this chapter, we will extend the same recipe and configure WordPress with the help of templates and files. By default, WordPress shows the configuration page to save the settings in the database. With the help of templates, we will create a configuration file with our database settings as defined in the attributes.

In this chapter, we will cover the following topics:

  • Files

  • Templates

  • Roles

  • Data bags

  • Python/Django cookbook with Nginx and uWSGI

  • Restart services with upstream and server handling