Book description
Build reliable, scalable, secure, high-performance systems to fully utilize the power of cloud computing
- Shows you how to use 100 powerful advanced features of Puppet, with detailed step-by-step instructions
- Covers all the popular tools and frameworks used with Puppet: Dashboard, Foreman, MCollective, and more
- Includes the latest features and updates in Puppet 2.7
- Written in a simple, practical style by a professional systems administrator and Puppet expert, every recipe has detailed step-by-step instructions showing you the exact commands and configuration settings you need
In Detail
A revolution is coming to IT operations. Configuration management tools can build servers in seconds, and automate your entire network. Tools like Puppet are essential to take full advantage of the power of cloud computing, and build reliable, scalable, secure, high-performance systems.
The book takes you beyond the basics to explore the full power of Puppet, showing you in detail how to tackle a variety of real-world problems and applications. At every step it shows you exactly what commands you need to type, and includes full code samples for every recipe.
The book takes the reader from a basic knowledge of Puppet to a complete and expert understanding of Puppet’s latest and most advanced features, community best practices, writing great manifests, scaling and performance, and how to extend Puppet by adding your own providers and resources.
The book includes real examples from production systems and techniques that are in use in some of the world’s largest Puppet installations, including a distributed Puppet architecture and a high-performance Puppetmaster solution using Apache and Passenger.
Explore the power of Puppet with this practical guide to the world’s most popular configuration management system
Table of contents
-
Puppet 2.7 Cookbook
- Table of Contents
- Puppet 2.7 Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Puppet Infrastructure
-
2. Monitoring, Reporting, and Troubleshooting
- Generating reports
- E-mailing log messages containing specific tags
- Creating graphical reports
- Producing automatic HTML documentation
- Drawing dependency graphs
- Testing your Puppet manifests
- Doing a dry run
- Detecting compilation errors
- Understanding Puppet errors
- Logging command output
- Logging debug messages
- Inspecting configuration settings
- Using tags
- Using run stages
- Using environments
-
3. Puppet Language and Style
- Using community Puppet style
- Using modules
- Using standard naming conventions
- Using embedded Ruby
- Writing manifests in pure Ruby
- Iterating over multiple items
- Writing powerful conditional statements
- Using regular expressions in if statements
- Using selectors and case statements
- Testing whether values are contained in strings
- Using regular expression substitutions
-
4. Writing Better Manifests
- Using arrays of resources
- Using define resources
- Using dependencies
- Using node inheritance
- Using class inheritance and overriding
- Passing parameters to classes
- Writing reusable, cross-platform manifests
- Getting information about the environment
- Importing dynamic information
- Importing data from CSV files
- Passing arguments to shell commands
-
5. Working with Files and Packages
- Making quick edits to config files
- Using Augeas to automatically edit config files
- Building config files using snippets
- Using ERB templates
- Using array iteration in templates
- Installing packages from a third-party repository
- Setting up an APT package repository
- Setting up a gem repository
- Building packages automatically from source
- Comparing package versions
-
6. Users and Virtual Resources
- Using virtual resources
- Managing users with virtual resources
- Managing users' SSH access
- Managing users' customization files
- Efficiently distributing cron jobs
- Running a command when a file is updated
- Using host resources
- Using multiple file sources
- Distributing directory trees
- Cleaning up old files
- Using schedules with resources
- Auditing resources
- Temporarily disabling resources
- Managing timezones
- 7. Applications
- 8. Servers and Cloud Infrastructure
-
9. External Tools and the Puppet Ecosystem
- Creating custom Facter facts
- Executing commands before and after Puppet runs
- Generating manifests from shell sessions
- Generating manifests from a running system
- Using Puppet Dashboard
- Using Foreman
- Using MCollective
- Using public modules
- Using an external node classifier
- Creating your own resource types
- Creating your own providers
- Index
Product information
- Title: Puppet 2.7 Cookbook
- Author(s):
- Release date: October 2011
- Publisher(s): Packt Publishing
- ISBN: 9781849515382
You might also like
book
Puppet Types and Providers
Puppet’s true power exists in the simple resource model it uses to manage the state of …
book
Troubleshooting Puppet
Troubleshoot your Puppet infrastructure to leverage your system's performance effectively About This Book Covers major tools …
book
Developing and Porting C and C++ Applications on AIX
This IBM Redbook will help experienced UNIX application developers who are new to the AIX operating …
book
Learning Puppet 4
If you're a system administrator, developer, or site reliability engineer responsible for handling hundreds or even …