Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

terraform and packer for ESXi (free license) lab environment

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...