Book Image

Puppet 5 Beginner's Guide - Third Edition

By : John Arundel
Book Image

Puppet 5 Beginner's Guide - Third Edition

By: John Arundel

Overview of this book

Puppet 5 Beginner’s Guide, Third Edition gets you up and running with the very latest features of Puppet 5, including Docker containers, Hiera data, and Amazon AWS cloud orchestration. Go from beginner to confident Puppet user with a series of clear, practical examples to help you manage every aspect of your server setup. Whether you’re a developer, a system administrator, or you are simply curious about Puppet, you’ll learn Puppet skills that you can put into practice right away. With practical steps giving you the key concepts you need, this book teaches you how to install packages and config files, create users, set up scheduled jobs, provision cloud instances, build containers, and so much more. Every example in this book deals with something real and practical that you’re likely to need in your work, and you’ll see the complete Puppet code that makes it happen, along with step-by-step instructions for what to type and what output you’ll see. All the examples are available in a GitHub repo for you to download and adapt for your own server setup.
Table of Contents (21 chapters)
Puppet 5 Beginner's Guide Third Edition
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

Getting the demo repo


The demo repo is available on GitHub, and you can clone it in the same way as for the example repo for this book by running this command:

git clone -b production https://github.com/bitfield/control-repo-3

It contains everything you'll need to manage nodes with Puppet:

  • User accounts and SSH keys

  • SSH and sudoers config

  • Time zone and NTP settings

  • Hiera data

  • Automatic Puppet update and apply scripts

  • Bootstrap script for new nodes

It also includes a Vagrantfile so you can try out the repo on a Vagrant virtual machine.

Copying the repo

If you are going to use the demo repo as the basis for your own Puppet repo, you need to make a copy of it so that you can edit and maintain it yourself.

You can do this in two ways. One is to fork the repo to your own GitHub account. To do this, log in to GitHub and browse to the demo repo URL:

https://github.com/bitfield/control-repo-3.git

Look for the Fork button at the top right of the page and click it. This will create a new repo under your account...