O'Reilly logo

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

Configuration Management with Chef-Solo

Book Description

A comprehensive guide to get you up and running with Chef-Solo

In Detail

Chef is a configuration management tool used to handle the hardest part of infrastructure, easing the deployment of servers and applications to any infrastructure. Chef-Solo is an open source version of the chef-client that allows you to use cookbooks with nodes, without requiring access to a Chef server. In any infrastructure, managing servers is one of the most critical tasks for any server administration. Chef-Solo makes the process of booting and provisioning many machines at the same time much easier.

Configuration Management with Chef-Solo will take you through the workflow of managing one or more servers. It includes many sample recipes to start with, and gradually you will take a look at the different interaction points and will also learn how Chef-Solo helps minimize your efforts to build and manage different machines. You will learn how to run servers while executing Ruby code. This hands-on guide will help you to understand the importance of this amazing configuration management tool.

What You Will Learn

  • Define your infrastructure as code in Chef
  • Set up a testing and production environment with Chef-Solo
  • Test the incremental development of a project with Vagrant
  • Develop recipes and manage web and database roles
  • Automate tedious manual tasks
  • Learn to use data bags and write clean cookbooks
  • Create a Docker image using cookbooks
  • Manage and scale your cloud infrastructure by automating your configuration management

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Configuration Management with Chef-Solo
    1. Table of Contents
    2. Configuration Management with Chef-Solo
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Introduction to Chef and Chef-Solo
      1. Getting started with Chef
      2. Understanding Chef-Solo
      3. Terminologies
        1. List of terminologies
          1. Node
          2. Workstation
          3. Cookbooks
          4. Recipes
          5. Resources
          6. Roles
          7. Attributes
          8. Templates
          9. Data bags
      4. Different use cases
        1. PHP WordPress
        2. Python/Django application
      5. An overview of Chef
      6. Summary
    9. 2. Setting Up an Environment for Chef-Solo
      1. Installation on Linux and Ubuntu
        1. Installing Chef as a Ruby gem
        2. Installing Chef as a package manager
        3. Using the Omnibus installer
      2. Prerequisites of Chef-Solo
      3. Cookbooks
        1. The folder structure
          1. Attributes
          2. Files
          3. Recipes
          4. Templates
      4. Downloading recipes
      5. Chef-Solo configuration
        1. Execution of recipes
      6. Summary
    10. 3. Setting Up a Development Environment
      1. Introducing virtual machine
        1. System virtual machines
        2. Process virtual machines
      2. Executing recipes with Vagrant
        1. Provision
      3. Creating a Hello World recipe
      4. Summary
    11. 4. Developing Cookbooks
      1. Exploring Knife
      2. Developing recipes and cookbooks
      3. Berkshelf
        1. The installation of Berkshelf
        2. The creation of a Berksfile
      4. Understanding recipes
      5. Resources
      6. Attributes
      7. Metadata
      8. Summary
    12. 5. More about Cookbooks and Recipes
      1. Using files
      2. Exploring templates
      3. Data bags
      4. Roles
      5. Restarting services and server handling
      6. Summary
    13. 6. Chef-Solo and Docker
      1. Docker
      2. Installing Docker
      3. The working of Docker
      4. Dockerfiles
      5. Recommended ways to use Chef-Solo
      6. Chef server
        1. Web UI
        2. Erchef
        3. Message queues
      7. Summary
    14. Index