AlmaLinux / cloud-images

Packer templates and other tools for building AlmaLinux images for various cloud platforms.
MIT License
150 stars 47 forks source link

fix(packer): fixes and formatting #185

Closed LKHN closed 1 month ago

LKHN commented 1 month ago

Fixes:

Formatting:

These recent bugs also made me review the latest documentation of HCL2 for Packer.

These best practices applied to avoid any kind of this issue and have a consistency on all Packer templates.

We started to write these Packer templates when the JSON to HCL2 transition was new. As HCL2 support on Packer evolves it got new features and core syntax is stabilized now.

These changes optimize all the templates regardless of when they are written.