Reader small image

You're reading from  HashiCorp Packer in Production

Product typeBook
Published inJul 2023
PublisherPackt
ISBN-139781803246857
Edition1st Edition
Right arrow
Author (1)
John Boero
John Boero
author image
John Boero

John Boero has 20 years of experience in the tech industry covering engineering, consulting, architecture, and pre-sales. He comes from Chicago, IL in the USA but currently lives in London, UK. He has worked for Red Hat, Puppet, and HashiCorp and remains active in the open source community. All commissions for this book will be donated to the Raspberry Pi Foundation non-profit to encourage coding and computing skills for kids.
Read more about John Boero

Right arrow

Summary

Packer plugins are an advanced topic, and here we did a super simple example written in Go. The current versions of Packer use RPC for communicating with the main Packer process. This means that plugins could technically be written in any language that supports RPC, but the great SDK complemented by the Packer team’s scaffold plugins in Go makes a fairly complex concept simple via standard interfaces. It is possible to merge a popular plugin into the main Packer binary but this requires approval from the Packer engineering team. There is no reason a Packer plugin can’t be used in production environments so long as it is packaged properly as a signed Git release and cached locally via packer init.

Data source plugins are quite simple, with inputs and outputs. Builders and provisioners are more complex plugins that may require implementing an additional communicator for standard provisioners to access your build environment. Make sure, when writing a production...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
HashiCorp Packer in Production
Published in: Jul 2023Publisher: PacktISBN-13: 9781803246857

Author (1)

author image
John Boero

John Boero has 20 years of experience in the tech industry covering engineering, consulting, architecture, and pre-sales. He comes from Chicago, IL in the USA but currently lives in London, UK. He has worked for Red Hat, Puppet, and HashiCorp and remains active in the open source community. All commissions for this book will be donated to the Raspberry Pi Foundation non-profit to encourage coding and computing skills for kids.
Read more about John Boero