Mastering Puppet 5
Optimize enterprise-grade environment performance with Puppet
Ryan Russell-Yates
Jason Southgate
BIRMINGHAM - MUMBAI
Mastering Puppet 5
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Vijin Boricha
Acquisition Editor: Meeta Rajani
Content Development Editor: Nithin George Varghese
Technical Editor: Komal Karne
Copy Editor: Safis Editing
Project Coordinator: Drashti Panchal
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Graphics: Tom Scaria
Production Coordinator: Shantanu Zagade
First published: September 2018
Production reference: 1280918
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78883-186-4
www.packtpub.com
To those mentors who have helped me understand that the only important question in infrastructure is: "How can we do this better?"
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com
and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the authors
Ryan Russell-Yates is a technical consultant in the fields of automation, DevOps, and infrastructure architecture. He has helped numerous IT practitioners at companies of various shapes and sizes across a range of industries to implement automation best practices at scale. Ryan's true passion in the technology industry is teaching practitioners new tools, technologies, and strategies for dealing with today's complicated digital landscape.
Jason Southgate has been working in the IT industry for more than 15 years, has been using Puppet for more than 6 years, and has tackled some very large projects in Europe, most recently creating an IaaS/PaaS cloud for KPN, the Netherlands' premier telecommunications company, using Puppet Enterprise at a very large scale. Jason was certified in Puppet in 2014, and also has AWS and Azure certification.
About the reviewer
Deniz Parlak has worked with Linux/UNIX technologies for more than five years. He is a [Dev-Sys-Sec]Ops enthusiast. Deniz is currently working with [Dev-Sys-Sec]Ops applications, especially Docker, Ansible, Kubernetes, and cloud providers, and continues to share information about new technologies with people at many technical conferences and lectures. He has also published a book entitled CentOS System and Server Management, and is still writing Docker and Bash scripting books. His presentations on the Zeus tool and AWS hardening were selected for events such as Black Hat Asia 2018, DevOpsDays, and NuitDuHack.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
Puppet 5 remains the software configuration management software of choice, especially for larger-scale configurations.
Here are some examples of current real-world use cases of Puppet:
- Twitter uses Puppet for what is currently one of the larger social networking infrastructures (https://blog.twitter.com/engineering/en_us/topics/infrastructure/2017/the-infrastructure-behind-twitter-scale.html). Facebook uses Opscode Chef, the competitive product in the software configuration management category.
- Uber uses Puppet for its standard configuration management (https://eng.uber.com/uchat/).
- Walmart is also a very large Puppet user (https://puppet.com/blog/how-walmart-scaled-puppet-55K-nodes-and-beyond).
Although there are newer products, such as Ansible and Salt, Puppet remains I believe the premier tool, especially for such larger infrastructures (10,000+ servers). It is worth mentioning that Ansible has also become very popular, possibly due to its shallower learning curve and adoption by Red Hat.
Dealing with this level of scale and complexity is non-trivial. With this book, Mastering Puppet 5, we want to put the know-how at your disposal to tackle your own large-scale challenges, at mastery level.
Version 5 of Puppet, which is the version covered by this book, was announced with considerable fanfare at last year's PuppetConf (2017) by the new CEO, Sanjay Mirchandani, as "Puppet's largest set of product innovations. Ever." In this book, we've gone through these new technologies, including Puppet Discovery, Puppet Tasks, and Puppet Pipelines, to give you the know-how you need to use Puppet 5 in the real world with confidence.
Who this book is for
If you are a system administrator or developer who has already used Puppet and are looking for mastery-level skills and best practices with a view to using Puppet in an enterprise environment, at large scale, this book is for you. Some beginner-level knowledge of using Puppet would be necessary.
Next page