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

Using files

Files are used as a resource ...

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