Online Book Reader

Home Category

Managing Infrastructure with Puppet - James Loope [0]

By Root 122 0
Managing Infrastructure with Puppet


Table of Contents

Preface

Software

Conventions Used in This Book

Using Code Examples

Safari® Books Online

How to Contact Us

1. Baby Steps to Automation

Getting the Software

Introducing Puppet

Putting the Pieces Together

Getting Started

Files and Packages

Services and Subscriptions

Exec and Notify

Facts, Conditional Statements, and Logging

The Puppet Master

2. Puppeteering

Defines

Inheritance and Parameterized Classes

Virtual Resources

Variables

Templates

3. Who Needs LDAP?

Building the Framework

Declaring Users

Throw Away the Handwritten Notebooks

4. MCollective

Getting the Software

ActiveMQ

MCollective Server

MCollective Client

MCollective Commands

Managing Infrastructure with Puppet

James Loope

Editor


Mike Loukides

Editor


Meghan Blanchette


Copyright © 2011 James Loope

O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com.

Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Managing Infrastructure with Puppet, the image of an English setter, and related trade dress are trademarks of O’Reilly Media, Inc.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps.

While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

O'Reilly Media

* * *

Preface

This book is for anyone using or considering Puppet as a systems automation tool. Readers of this book should be familiar with Linux systems administration and basic Ruby. I’ll cover the basics of using Puppet manifests for configuration management and techniques for executing and managing those configurations with MCollective and Facter. I’ll often make suggestions that assume you are managing a virtualized infrastructure, but virtualization is not necessary to reap the benefits of this software.

Software

This book is focused on Puppet 2.6.1 with Facter 1.5.6, and the MCollective version used is 1.0.1. Because of the very active development of all of these products, concepts and examples may not apply to earlier versions.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, and file extensions.

Constant width

Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

Constant width bold

Shows commands or other text that should be typed literally by the user.

Constant width italic

Shows text that should be replaced with user-supplied values or by values determined by context.

* * *

Tip


This icon signifies a tip, suggestion, or general note.

* * *

* * *

Caution


This icon indicates a warning or caution.

* * *

Using Code Examples

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating

Return Main Page Next Page

®Online Book Reader