I run ESXi and I run terraform (TF) to built ubuntu VM’s in it. Within main.tf I kick-off the VM that runs the setup based on PXE while booting the VM guest. So far so good.
The system set’s up itself automatically based on linux kickstart file coming from the PXE installation but I want to do further steps after the installation was sucfessful.
I think there is where “packer” would come into play. Is there a way (in my case) that packer would somehow poll until SSH is becoming available on the Linux boxes?
And how would that look like to kick-off “packer” in TF in my case.
(Source for TF and ESXi support: https://github.com/josenk/terraform-provider-esxi)
Any help kindly appreciated! ndee
question from:https://stackoverflow.com/questions/65845766/terraform-and-packer-for-esxi-free-license-lab-environment