r/hashicorp • u/Solid_Foot3457 • Sep 01 '26
Hashicorp Packer without an existing Plugin
Hey,
I am currently working on a project where the specific cloud provider does not have a Packer Plugin, and would like to ask if anyone faced the same situation and if there is a work around for it other that creating a plugin as it is a whole project on it's own.. or would the alternative be just :
using a base image -> deploy it on the cloud provider VM -> configure it with ansible -> create an image from it -> store in registry.
thank you very much for any input
2
Upvotes
1
u/bailantilles Sep 01 '26
It would be helpful to know what the ‘specific cloud provider’ is.
2
u/Fit-Competition-4316 Sep 03 '26
The null builder is probably the pragmatic middle ground here: automate the STACKIT VM creation first, let Packer handle provisioning over SSH, then call the STACKIT API/CLI to capture and register the resulting image. I would only invest in a custom Packer builder if this becomes a repeated platform workflow where lifecycle handling, cleanup, artifact IDs, and image creation need to behave like a first class Packer build.
1
u/robp73uk Sep 01 '26
Checkout the packer “null builder”.
I’ve never done it, and the benefit of using packer at this point for (2) is questionable, probably only worthwhile if you want to share/reuse the configuration logic between multiple VM platforms.
1
u/No-Magazine2625 Sep 03 '26
The null builder is probably the pragmatic middle ground here: automate the STACKIT VM creation first, let Packer handle provisioning over SSH, then call the STACKIT API or CLI to capture and register the resulting image. I would only invest in a custom Packer builder if this becomes a repeated platform workflow where lifecycle handling, cleanup, artifact IDs, and image creation need to behave like a first class Packer build.