Cargando…

Chef essentials : discover how to deploy software, manage hosts, and scale your infrastructure with Chef /

If you have some understanding of IT infrastructure principles and are ready to find out what Chef is all about, then this guide will show you all you need to know. In order to get the most out of this book, some experience of programming or scripting languages would be useful.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Ewart, John
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2014.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Installing Chef; Terminology; Working with Chef; Installing chef-solo; The Ruby gem; Managing gems; Verifying that chef-solo works; Installing a Chef server; Requirements and recent changes; Installation requirements; What you will be installing; Getting the installer; Installation outline; Installing on Ubuntu; Downloading the package; Installing the package; Installing on Red Hat Enterprise Linux; Downloading the package; Configuring a Chef server
  • Understanding how chef-server-ctl worksWhat''s happening on my server?; Verifying that the services are running; Validating that your service is working; Ensuring that your knife configuration works; Summary; Chapter 2: Modeling Your Infrastructure; Getting to know Chef; Modeling your infrastructure; Roles; Defining roles; Implementing a role; Determining which recipes you need; Installing a cookbook; Applying recipes to roles; Mapping your roles to nodes; Converging a node; Environments; Organizing your configuration data; Example attribute data; Data bags; Knowing when to use data bags
  • Large-scale infrastructureSummary; Chapter 3: Integrating with the Cloud; Leveraging the cloud; Amazon EC2; Installing the EC2 knife plugin; Setting up EC2 authentication; Provisioning an instance; Bootstrapping the instance; Terminating the instance; Removing the Chef node; Rackspace Cloud; Provisioning an instance; Terminating an instance; Removing the Chef node; Summary; Chapter 4: Working with Cookbooks; Attributes; Multiple attribute files; Supporting multiple platforms; Loading external attributes; Using attributes; Metadata; Recipes; Resources; Using resources
  • Overriding a default behaviorTemplates; Why use templates?; A quick ERB primer; The template resource; The template variables; Passing variables to a template; Accessing computed configurations; Searching for templates; Definitions; Recipes; Developing recipes; Writing recipes; Starting out small; Installing a simple service; Getting more advanced; Summary; Chapter 5: Testing Your Recipes; Testing recipes; RSpec; RSpec and ChefSpec; Testing basics; Comparing RSpec with other testing libraries; Using ChefSpec; Getting started with ChefSpec; Installing ChefSpec
  • Locking your dependencies in RubyCreating a simple recipe and a matching ChefSpec test; Writing a ChefSpec test; Building your recipe; Executing tests; Understanding failures; Expanding your tests; Multiple examples in a spec test; Testing for multiple platforms; Summary; Chapter 6: From Development to Deployment; Describing the setup; Deploying software with Chef; Configuring your local environment; Modeling a simple Python application; Managing the cookbooks; Downloading cookbooks; Looking at the database recipe; Looking at your application deployment cookbook; Preparing the directories