Read Pro Puppet Online

Authors: Jeffrey McCune James Turnbull

Pro Puppet (2 page)

BOOK: Pro Puppet
12.62Mb size Format: txt, pdf, ePub
ads
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

BOOK: Pro Puppet
12.62Mb size Format: txt, pdf, ePub
ads

Other books

The Skilled Seduction by Tracy Goodwin
Spares by Michael Marshall Smith
Blood Secret by Sharon Page
Delicious by Susan Mallery
Summer Heat by Harper Bliss