You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
I'm trying to tweak this module as follows. When deploy only 1 VM do not add count index number to var.vm_name_prefix. Deploying 2 or more VMs add count index number to var.vm_name_prefix. The only modifications are name and hostname lines. Please see Modified vsphere_virutal_machine_linux.tf from module section below.
After that I run terraform plan the output looks good, see below. Unfortunately when I run terraform apply I got into crash. All 3 modification of name and hostname give me same plan output until I run the terraform apply.
This issue was originally opened by @Koleon as hashicorp/terraform#19948. It was migrated here as a result of the provider split. The original body of the issue is below.
Hello guys,
I'm trying to tweak this module as follows. When deploy only 1 VM do not add count index number to var.vm_name_prefix. Deploying 2 or more VMs add count index number to var.vm_name_prefix. The only modifications are
name
andhostname
lines. Please see Modified vsphere_virutal_machine_linux.tf from module section below.After that I run
terraform plan
the output looks good, see below. Unfortunately when I runterraform apply
I got into crash. All 3 modification of name and hostname give me same plan output until I run the terraform apply.Terraform Version
Terraform Configuration Files
Modified
vsphere_virutal_machine_linux.tf
from moduleTerraform plan output:
Crash Output
crash.log
Expected Behavior
Deploy 2 VMs. With names
testing-module-vm-0
andtesting-module-vm-1
.Actual Behavior
Terraform crash.
Steps to Reproduce
terraform init
terraform plan
terraform apply
Could you please help me out?
The text was updated successfully, but these errors were encountered: