Pro Puppet (2 page)

Read Pro Puppet Online

Authors: Jeffrey McCune James Turnbull

BOOK: Pro Puppet
2.13Mb size Format: txt, pdf, ePub
Contents

About the Authors

About the Technical Reviewer

Acknowledgments

Introduction

Chapter 1: Getting Started with Puppet

What Is Puppet?

Deployment

Configuration Language and Resource Abstraction Layer

Transactional Layer

Selecting the Right Version of Puppet

Can I mix releases of Puppet?

Installing Puppet

Installing on Red Hat Enterprise Linux and Fedora

Installing on Debian and Ubuntu

Installing on OpenSolaris

Installing from Source

Installing on Microsoft Windows

Installing on other Platforms

Configuring Puppet

The site.pp file

Firewall Configuration

Starting the Puppet Master

Connecting Our First Agent

Completing the Connection

Creating Our First Configuration

Extending the site.pp file

Agent Configuration

Creating our first module

Module Structure

The init.pp file

Applying Our First Configuration

Summary

Resources

Chapter 2: Building Hosts with Puppet

Getting Started

Installing Puppet

Configuring Nodes

Making (More) Magic With Modules

Version Controlling Your Modules

Creating a module to Manage SSH

Managing Our Classes

Creating a Module to Manage Postfix

The postfix::install class

The postfix::config class

The postfix::service class

Managing MySQL with the mysql Module

The mysql::install class

The mysql::config class

The mysql::service class

Managing Apache and Websites

The apache::install class

The apache::service class

The Apache definition

Managing Puppet with the Puppet Module

Summary

Resources

Chapter 3: Working with Environments

Configuring Puppet Environments

Populating the New Environments

Making Changes to the Development Environment

Testing the New Environments with the Puppet Agent

Environment Branching and Merging

Setting Up a Central Repository

Developing a Change Using a Branch

Merging Changes into a Testing Environment

Production Environment Releases

Summary

Resources

Chapter 4: Puppet Scalability

Identifying the Challenges

Running the Puppet Master with Apache and Passenger

Installing Apache and Passenger on Enterprise Linux

Installing Apache and Passenger on Debian-Based Systems

Installing Passenger Using Ruby Gems

Configuring Apache and Passenger

Testing the Puppet Master in Apache

Load-Balancing Multiple Puppet Masters

HTTP Load Balancing

Puppet CA Load Balancing Configuration

Measuring Performance

Splay Time

Summary

Resources

Chapter 5: Externalizing Puppet Configuration

External Node Classification

Configuring Nodes Using An External Node Classifier

An External Node Classifier in a Shell Script

A Ruby External Node Classifier

A Perl External Node Classifier

Back-Ending a Node Classification

Storing Node Configuration in LDAP

Installing Ruby LDAP Libraries

Setting Up the LDAP Server

Adding the Puppet Schema

Configuring LDAP in Puppet

Summary

Resources

Chapter 6: Exporting and Storing Configuration

Virtual Resources

Declaring and Realizing a Virtual Resource

Applying the Realize Function

Other books

The Mark of the Horse Lord by Rosemary Sutcliff
The Luck Runs Out by Charlotte MacLeod
The Red Box by Rex Stout
Death Takes a Holiday by Jennifer Harlow
A Family for Christmas by Noelle Adams
Exit Stage Left by Nall, Gail
For Your Eyes Only by Ben Macintyre
Killing Honor by S. M. Butler