Question: I am trying to create a number of VM-s using Terraform & vSphere. The creation is all fine, looks ok, but the provisioner tasks are failing, as it can not interpret the host.
The relevant part of the code is here
Expected:
- with increasing IP addresses
- then run a simple powershell script on them
However, it errors out, saying the host should be a string.
How can I refer to the IP address of the VM that is just being created, via the "self" object? (Or really, is there a way to display this "self" object and it's attributes?)
question from:
https://stackoverflow.com/questions/65845991/terraform-running-remote-exec-on-new-multiple-vm-s 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…