This book is a hands-on introduction to Packer, the HashiCorp image builder. The book is for engineers, developers, sysadmins, operations staff, and those with an interest in infrastructure, configuration management, or DevOps. It assumes no prior knowledge of Packer. If you're a Packer guru, you might find some of this book too introductory.
There is an expectation that the reader has basic Unix/Linux skills and is familiar with Git version control, the command line, editing files, installing packages, managing services, and basic networking.
Finally, Packer is evolving quickly and has only just reached a 1.0.0 release state. That means "here be dragons," and you should take care when using Packer in production.
This book assumes you are using Packer 1.0.3 or later. Earlier versions may not work as described.
Packer™ is a registered trademark of HashiCorp, Inc.
Thanks to the folks who helped make this book more accurate and useful.
Rickard von Essen works as a Continuous Delivery and Cloud Consultant at Diabol. He helps companies deliver faster, improve continuously, and worry less. In his spare time, he helps maintain Packer and contributes to numerous other FOSS projects. He has been tinkering with Linux and BSD since the late 1990s, and has been hacking since the Amiga era. When not fiddling with computers, he spends his time with his wife and two children in Stockholm, Sweden. Rickard has a Master of Computer Science and Engineering from Linköping University.
Ben Allen is a SecOps engineer who works with BlueTarp Financial to build secure cloud environments across platforms. Throughout his career he’s been an automation evangelist who helps drive organizations to codify processes and build durable, automated assets. Ben’s background as a DevOps engineer and a sysadmin has been spent in the healthcare and pharmaceutical industries. He is a certified SaltStack engineer, AWS Certified Solutions Architect, and holds several Microsoft certifications. Ben earned his Bachelor’s degree in network engineering and serves the advisory boards of higher education institutions that help modernize technology curriculums.
Daniel Linder is a Systems Architect at West Corporation. He is responsible for the life cycle of all Windows, RedHat, Solaris, and AIX platforms at West. He is also responsible for leading West's transition to private cloud, including their Packer implementation. Daniel is a RedHat Certified System Administrator and has a BS in Computer Science from the University of Nebraska.
Sid Orlando is a writer and editor (among some other things) who may or may not have recurring dreams about organizing her closet with dreamscape Docker containers. Find her on Twitter: @ohreallysid.
This is an inline code statement
.
This is a code block:
This is a code block
Long code strings are broken. If you see . . .
in a code block it indicates that the output has been shortened for brevity's sake.
The code and example configurations contained in the book are available on GitHub at:
This book was written in Markdown with a large dollop of LaTeX. It was then converted to PDF and other formats using Pandoc (with some help from scripts written by the excellent folks who wrote Backbone.js on Rails).
Please email any errata you find to james+errata@lovedthanlost.net.
This book is presented solely for educational purposes. The author is not offering it as legal, accounting, or other professional services advice. While best efforts have been used in preparing this book, the author makes no representations or warranties of any kind and assumes no liabilities of any kind with respect to the accuracy or completeness of the contents, and specifically disclaims any implied warranties of merchantability or fitness of use for a particular purpose. The author shall not be held liable or responsible to any person or entity with respect to any loss or incidental or consequential damages caused, or alleged to have been caused, directly or indirectly, by the information or programs contained herein. Every company is different and the advice and strategies contained herein may not be suitable for your situation. You should seek the services of a competent professional before beginning any infrastructure project.
Some rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical or photocopying, recording, or otherwise, for commercial purposes without the prior permission of the publisher.
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit here.
© Copyright 2017 - James Turnbull & Turnbull Press
This is version 1.0.0 (9dce66c) of The Packer Book.