josenk / terraform-provider-esxi

Terraform-provider-esxi plugin
GNU General Public License v3.0
544 stars 154 forks source link

terraform apply and parallelism with remote-exec #85

Closed replay111 closed 4 years ago

replay111 commented 4 years ago

Hi, I've found that this is not working:

  provisioner "remote-exec" {
    inline = [
      "/root/install/hostname.sh gitlab",
      "screen -AmdS delay_ip_change bash",
      "screen -S delay_ip_change -p 0 -X stuff $'sleep 20s\n/root/install/network.sh 21\r'"
    ]
  }

when I am running terraform apply (with default options),

but when I use terraform apply -parallelism 1 then everything works ok.

Is there any limitation with that provisioner?

replay111 commented 4 years ago

I've extended the delay and set it different for each hosts, but I think that should just with the same values....

josenk commented 4 years ago

This github repo is for a provider plugin, not a provisioner... If you feel you have a bug with a provisioner, you need to open an issue there.

replay111 commented 4 years ago

OK I thought that this can be caused by the ESXi and the communication that is provided by plugin, but if this is not related then I will close this and search in terraform pages/wiki.