Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert AM packer templates into HCL2 #367

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

replaceafill
Copy link
Contributor

Packer 1.7 introduced the HCL2 format for templates which is more flexible and modular than the original JSON format and it's the recommended format now.

This updates the Ubuntu 20.04 base template and the AM box template to HCL2. The templates were initially upgraded with Packer's hcl2_upgrade command and then cleaned to remove unnecessary variables. Also, Packer plugin requirements are now declared in the templates.

This runs the `packer hcl2_upgrade` command on the template file of
the Ubuntu 20.04 base image to use the new HCL2 format instead of the
legacy JSON one.
These variables are not used in the template so it is safe to remove
them.
Copy link
Contributor

@Dhwaniartefact Dhwaniartefact left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great cleanup!

@replaceafill replaceafill merged commit f2fe347 into qa/1.x Jan 28, 2025
1 check passed
@replaceafill replaceafill deleted the dev/am-vagrant-convert-templates branch January 28, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants