
Puppet 2.7 Cookbook
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
- 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
Book DescriptionA 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.What you will learn - Make Puppet reliable, performant, and scalable
- Produce eye-catching reports and information for management
- Understand common error messages and troubleshooting common problems
- Manage large networks with tools like Foreman and MCollective
- Use classes and inheritance to write powerful Puppet code
- Deploy configuration files and templates for lightning-fast installations
- Use virtual machines to build test and staging environments, and production systems on cloud platforms such as EC2
- Automate every aspect of your systems including provisioning, deployment and change management
Who this book is forThe book assumes that the reader already has a working Puppet installation and perhaps has written some basic manifests or adapted some published modules. It also requires some experience of Linux systems administration, including familiarity with the command line, file system, and text editing. No programming experience is required.
All prices
More details
Other editions
Additional editions

Content
- Intro
- Puppet 2.7 Cookbook
- Table of Contents
- Puppet 2.7 Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Puppet Infrastructure
- Using version control
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using commit hooks
- How to do it.
- How it works.
- There's more.
- See also
- Deploying changes with Rake
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Configuring Puppet's file server
- How to do it...
- How it works...
- There's more...
- See also
- Running Puppet from cron
- How to do it...
- How it works...
- There's more...
- See also
- Using autosign
- How to do it...
- How it works...
- See also
- Pre-signing certificates
- How to do it...
- See also
- Retrieving files from Puppet's filebucket
- How to do it...
- How it works...
- There's more...
- Scaling Puppet using Passenger
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Creating decentralized Puppet architecture
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- 2. Monitoring, Reporting, and Troubleshooting
- Generating reports
- How to do it.
- How it works.
- There's more.
- Enabling reports on the command line
- Logging Puppet messages to syslog
- See also
- E-mailing log messages containing specific tags
- How to do it.
- How it works.
- There's more.
- What are tags?
- Specifying multiple tags, or excluding tags
- Sending reports to multiple e-mail addresses
- See also
- Creating graphical reports
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Producing automatic HTML documentation
- How to do it.
- How it works.
- There's more.
- Drawing dependency graphs
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Testing your Puppet manifests
- Getting ready
- How to do it.
- How it works.
- There's more.
- Doing a dry run
- How to do it.
- How it works.
- There's more.
- See also
- Detecting compilation errors
- How to do it.
- How it works.
- Understanding Puppet errors
- How to do it.
- Logging command output
- How to do it.
- How it works.
- There's more.
- Logging debug messages
- How to do it.
- How it works.
- There's more.
- Printing out variable values
- Printing the full resource path
- Logging messages on the Puppetmaster
- Inspecting configuration settings
- How to do it.
- How it works.
- Using tags
- How to do it...
- There's more.
- Using run stages
- How to do it.
- How it works.
- There's more.
- Using environments
- How to do it.
- How it works.
- There's more.
- See also
- 3. Puppet Language and Style
- Using community Puppet style
- How to do it.
- There's more.
- Using modules
- How to do it.
- How it works.
- There's more...
- Templates
- Facts, functions, types, and providers
- puppet-module
- Third-party modules
- Module organization
- See also
- Using standard naming conventions
- How to do it.
- There's more.
- Using embedded Ruby
- How to do it.
- How it works.
- See also
- Writing manifests in pure Ruby
- How to do it.
- How it works.
- There's more.
- Variables
- Documentation
- Iterating over multiple items
- How to do it.
- How it works.
- There's more.
- Hashes
- Creating arrays with the split function
- Writing powerful conditional statements
- How to do it.
- How it works.
- There's more.
- elsif
- Comparisons
- Combining expressions
- See also
- Using regular expressions in if statements
- How to do it.
- How it works.
- There's more.
- Capturing patterns
- Regular expression syntax
- See also
- Using selectors and case statements
- How to do it.
- How it works.
- There's more.
- Regular expressions
- Defaults
- Testing whether values are contained in strings
- How to do it.
- There's more.
- Using regular expression substitutions
- How to do it.
- How it works.
- There's more...
- See also
- 4. Writing Better Manifests
- Using arrays of resources
- How to do it.
- How it works.
- See also
- Using define resources
- How to do it.
- How it works.
- There's more.
- Using dependencies
- How to do it.
- How it works.
- There's more.
- Using node inheritance
- How to do it.
- How it works.
- There's more.
- See also
- Using class inheritance and overriding
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Undefining parameters
- Adding extra values using the +& operator
- Disabling resources
- See also
- Passing parameters to classes
- How to do it.
- How it works.
- There's more.
- See also
- Writing reusable, cross-platform manifests
- How to do it.
- How it works...
- There's more.
- See also
- Getting information about the environment
- How to do it.
- How it works.
- There's more.
- See also
- Importing dynamic information
- Getting ready.
- How to do it.
- How it works.
- There's more.
- See also
- Importing data from CSV files
- Getting ready.
- How to do it.
- How it works.
- There's more.
- See also
- Passing arguments to shell commands
- How to do it.
- How it works.
- 5. Working with Files and Packages
- Making quick edits to config files
- How to do it.
- How it works.
- There's more.
- See also
- Using Augeas to automatically edit config files
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Building config files using snippets
- How to do it.
- How it works.
- There's more.
- See also
- Using ERB templates
- How to do it.
- How it works.
- There's more.
- See also
- Using array iteration in templates
- How to do it.
- How it works.
- There's more.
- See also
- Installing packages from a third-party repository
- How to do it.
- How it works.
- There's more...
- See also
- Setting up an APT package repository
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Adding packages
- Configuring nodes to use the repository
- Signing your packages
- Setting up a gem repository
- How to do it.
- How it works.
- There's more.
- Adding gems
- Using the gem repo
- Building packages automatically from source
- How to do it.
- How it works.
- There's more.
- Comparing package versions
- How to do it.
- How it works.
- 6. Users and Virtual Resources
- Using virtual resources
- How to do it.
- How it works.
- There's more.
- See also
- Managing users with virtual resources
- How to do it.
- How it works.
- See also
- Managing users' SSH access
- How to do it.
- How it works.
- There's more.
- Managing users' customization files
- How to do it.
- How it works.
- See also
- Efficiently distributing cron jobs
- How to do it.
- How it works.
- There's more.
- See also
- Running a command when a file is updated
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Using host resources
- How to do it.
- How it works...
- There's more...
- Using multiple file sources
- How to do it.
- How it works.
- There's more...
- See also
- Distributing directory trees
- How to do it.
- How it works.
- There's more.
- Cleaning up old files
- How to do it.
- How it works.
- There's more.
- Using schedules with resources
- How to do it.
- How it works.
- There's more.
- Auditing resources
- How to do it.
- How it works.
- There's more.
- See also
- Temporarily disabling resources
- How to do it.
- How it works.
- Managing timezones
- How to do it.
- There's more.
- 7. Applications
- Managing Apache servers
- How to do it...
- There's more...
- Creating Apache virtual hosts
- How to do it.
- How it works.
- There's more.
- See also
- Creating Nginx virtual hosts
- Getting ready.
- How to do it.
- How it works.
- There's more.
- See also
- Creating MySQL databases and users
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Managing Drupal sites
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Managing Rails applications
- How to do it.
- How it works.
- Nginx and Passenger
- Rails
- There's more.
- RVM
- Log rotation
- Databases
- SSL certificates
- 8. Servers and Cloud Infrastructure
- Deploying a Nagios monitoring server
- Getting ready.
- How to do it.
- How it works...
- There's more.
- Building high-availability services using Heartbeat
- How to do it.
- How it works.
- There's more.
- Managing NFS servers and file shares
- How to do it.
- How it works.
- There's more.
- Using HAProxy to load-balance multiple web servers
- How to do it.
- How it works.
- There's more.
- Managing firewalls with iptables
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Managing EC2 instances
- Getting ready.
- How to do it.
- How it works.
- There's more...
- See also
- Managing virtual machines with Vagrant
- How to do it.
- How it works.
- There's more.
- 9. External Tools and the Puppet Ecosystem
- Creating custom Facter facts
- Getting ready...
- How to do it.
- How it works...
- There's more...
- Executing commands before and after Puppet runs
- How to do it.
- There's more.
- Generating manifests from shell sessions
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Generating manifests from a running system
- How to do it.
- There's more.
- Using Puppet Dashboard
- Getting ready.
- How to do it.
- How it works.
- There's more.
- See also
- Using Foreman
- Getting ready.
- How to do it.
- There's more.
- Using MCollective
- Getting ready...
- How to do it.
- How it works.
- There's more.
- Installing an MCollective plugin
- Using public modules
- Getting ready...
- How to do it.
- How it works.
- There's more.
- Using an external node classifier
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Creating your own resource types
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Documentation
- Validation
- Creating your own providers
- Getting ready.
- How to do it.
- How it works.
- There's more.
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.