Content Deep Dive
Using Template Files with HashiCorp Packer
Blog post from HashiCorp
Post Details
Company
Date Published
Author
Adrien Delorme
Word Count
935
Language
English
Hacker News Points
-
Summary
HashiCorp Packer 1.7 has introduced support for HCL2-only functions, allowing users to build multiple operating systems with less duplication of configuration using the templatefile function in combination with http_content. This functionality simplifies the build process while making it more powerful by enabling the use of a variable preseed file that can be easily maintained. The example demonstrates how to create two Ubuntu images, one with HashiCorp Nomad and one with HashiCorp Consul, using this new feature.