Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Configuration Management with Chef-Solo
  • Table Of Contents Toc
Configuration Management with Chef-Solo

Configuration Management with Chef-Solo

By : Rahman
2 (1)
close
close
Configuration Management with Chef-Solo

Configuration Management with Chef-Solo

2 (1)
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)
close
close

Developing recipes and cookbooks


Cookbooks are collections of recipes, and contain each step of instructions. As we already have Knife installed on our machine, let's create a basic folder schema for a cookbook. Our goal is to develop a recipe that will install PHP, MySQL, Apache2, and WordPress.

The name of our cookbook is wpblog:

$ knife cookbook create wpblog

By default, the preceding command will generate the cookbook structure in the /var/chef folder. In case of any other folder path, use the -o flag.

$ knife cookbook create wpblog -o <cookbooks_folder_path>

The preceding command will yield an output as shown in the following screenshot:

Now that we have successfully created a folder structure of a cookbook, let's take a look at it and add some files to get started.

The folder structure of wpblog will look like the following screenshot:

As our folder structure is already created, let's create a default recipe using the following steps to execute and create Vagrant box to test our...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Configuration Management with Chef-Solo
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon