Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HashiCorp Packer in Production

You're reading from   HashiCorp Packer in Production Efficiently manage sets of images for your digital transformation or cloud adoption journey

Arrow left icon
Product type Paperback
Published in Jul 2023
Publisher Packt
ISBN-13 9781803246857
Length 190 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
John Boero John Boero
Author Profile Icon John Boero
John Boero
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Packer’s Beginnings
2. Chapter 1: Packer Fundamentals FREE CHAPTER 3. Chapter 2: Creating Your First Template 4. Chapter 3: Configuring Builders and Sources 5. Chapter 4: The Power of Provisioners 6. Chapter 5: Logging and Troubleshooting 7. Part 2: Managing Large Environments
8. Chapter 6: Working with Builders 9. Chapter 7: Building an Image Hierarchy 10. Chapter 8: Scaling Large Builds 11. Part 3: Advanced Customized Packer
12. Chapter 9: Managing the Image Lifecycle 13. Chapter 10: Using HCP Packer 14. Chapter 11: Automating Packer Builds 15. Chapter 12: Developing Packer Plugins 16. Index 17. Other Books You May Enjoy

What this book covers

Chapter 1, Packer Fundamentals, introduces Packer to those who have never used it before. This chapter will look at the use cases, architecture, and history of the project, as well as covering the basics of a Packer build process.

Chapter 2, Creating Your First Template, covers a traditional Hello World equivalent code example for Packer. This establishes the basic context for starting any Packer template.

Chapter 3, Configuring Builders and Sources, explores how to invoke one or more instances of a builder using sources in HCL2 syntax.

Chapter 4, The Power of Provisioners, describes how once an environment has been defined in a source, provisioners load or run customization to set up your desired applications and artifacts. The name provisioner comes from ships loading what they need for a voyage, a concept common to HashiCorp’s Vagrant, Packer, and Terraform products.

Chapter 5, Logging and Troubleshooting, highlights how, during the development process, it’s inevitable that troubleshooting will need to be done when builds go wrong. This isn’t always clear when doing multiple complex builds.

Chapter 6, Working with Builders, takes a deeper dive into the different types of builders available, from the local builders of VMware, VirtualBox, and QEMU to cloud builders and Docker containers. We will also explore alternative architectures with QEMU , which is able to emulate a wide variety of architectures.

Chapter 7, Building an Image Hierarchy, establishes how as images share things in common or extend other images, it becomes important to implement an image hierarchy strategy. We cover extended system images and container images in a logical way.

Chapter 8, Scaling Large Builds, shows how when large or complex builds or multi-cloud builds become slow, it’s time to optimize parallel builds. We will discuss parallel builds and make sure you don’t have to wait longer than necessary for a build result.

Chapter 9, Managing the Image Lifecycle, covers what to do when images become old and obsolete or need urgent patching. It’s important to set up a lifecycle strategy.

Chapter 10, Using HCP Packer, introduces HCP Packer, a SaaS platform from HashiCorp that allows automatic metadata and lifecycle management for the cloud. Here, we cover the basics of HCP’s free tier and, optionally, the paid tier.

Chapter 11, Automating Packer Builds, applies automation to everything learned about in the previous chapters. Packer runs can run via automated pipelines using common VCS offerings such as GitHub Actions or GitLab CI.

Chapter 12, Developing Packer Plugins, shows what to do if you come across a potential use case that Packer doesn’t cover. You may be able to extend the project with a plugin. This is an advanced topic that requires some understanding of Go.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image