Puppet 3 Cookbook
Build reliable, scalable, secure, and high-performance systems to fully utilize the power of cloud computing
- Use Puppet 3 to take control of your servers and desktops, with detailed step-by-step instructions
- Covers all the popular tools and frameworks used with Puppet: Dashboard, Foreman, MCollective, and more
- Teaches you how to extend Puppet with custom functions, types, and providers
- Packed with tips and inspiring ideas for using Puppet to automate server builds, deployments, and workflows
A revolution is happening in web operations. Configuration management tools can build servers in seconds, and automate your entire network. Tools like Puppet are essential to taking full advantage of the power of cloud computing, and building reliable, scalable, secure, high-performance systems. More and more systems administration and IT jobs require some knowledge of configuration management, and specifically Puppet.
"Puppet 3 Cookbook" 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 extending Puppet by adding your own providers and resources. It starts with guidance on how to set up and expand your Puppet infrastructure, then progresses through detailed information on the language and features, external tools, reporting, monitoring, and troubleshooting, and concludes with many specific recipes for managing popular applications.
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 based on the Git version control system. It covers common problems and errors and shows you how to troubleshoot your Puppet manifests. You’ll be introduced to powerful tools that work with Puppet such as Hiera and MCollective. You’ll learn how to use objection orientation and classes to write powerful, reusable manifests, and how to embed Ruby code in templates. You’ll find out how to extend Puppet with custom resource types and providers. The book also explains managing Rails applications and databases, building web servers, load balancers, high-availability systems with Heartbeat, and many other state-of-the-art techniques.
What you will learn from this book
- Install and set up Puppet for the first time
- Manage large networks with tools like Foreman and MCollective
- Take control of configuration data with Hiera and encrypting secrets with GnuPG
- Produce reliable, clean, maintainable code to community standards with puppet-lint and rspec-puppet
- 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