I've done this with esxi and hyper-v within the same packer build file. You just need to use separate builders, but your subsequent work is the same (provisioners etc).
In the provisioners sections it allows you to also specify that certain steps should only be applied to certain build names. For example we only want VMware tools installed on the esxi image, but the rest may remain the same.
I am not at my terminal right now but may be able to provide an example once I am if you still require it.
Luke
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
Date: 2018-09-25 5:24 PM (GMT-05:00)
Subject: [packer] multiple platforms
I'm new to packer. According to the documentation, packer is capable of creating identical images for multiple platforms but all the examples I saw targets specific platform. How would I go about using the same "recipe" for creating a qemu and esx image? If someone has an example, it would be very useful.
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues:
https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.