Packer Plugin web-init
This repository is a basic packer plugin that was made for the purpose of learning how to make a packer-plugin.
It was generated from hashicorp/packer-plugin-scaffolding
All this plugin does is create a basic index.html template. Only works on Mac OS.
A full guide to creating Packer plugins can be found at Extending Packer.
In this repository you will also find a pre-defined GitHub Action configuration for the release workflow
(.goreleaser.yml and .github/workflows/release.yml). The release workflow configuration makes sure the GitHub
release artifacts are created with the correct binaries and naming conventions.
Please see the GitHub template repository documentation
for how to create a new repository from this template on GitHub.
Building and Installing
Once the repo is cloned you can run this command to build and install
make dev
Running
If everything installed correctly, you can this command to test the plugin out
packer build examples/builder.pkr.hcl
This should result in a new directory called a web with index.html in the home directory
Packer plugin projects
Here's a non exaustive list of Packer plugins that you can checkout:
Looking at their code will give you good examples.
Requirements
Packer Compatibility
This web-init plugin is compatible with Packer >= v1.7.0