Trying to add 2 disks to a compute node for docker.. When I use the below stanza, the first 2 servers have the disks flipped.
resource "vsphere_virtual_machine" "compute" {
# ...
disk {
template = "${var.cloud_template}"
datastore = "${var.compute_datastore}"
}
disk {
size = "${var.compute_datastore_var_size}"
name = "${format("compute-var-disk-%s", element(var.compute_names,1))}"
datastore = "${var.compute_datastore_var}"
}
disk {
template = "${var.cloud_template}"
datastore = "${var.compute_datastore}"
}
disk {
size = "${var.compute_datastore_var_size2}"
name = "${format("compute-var-disk2-%s",
element(var.compute_names,count.index))}"
datastore = "${var.compute_datastore_var}"
}
}
In Terraform plan and apply: servers 1&2 have disk 2 at 50gb and disk 3 at 25 (the opposite of what I need), while server 3&4 have them correct.
Any ideas that will help correct this?
disk
blocks and I suspect the answer here will depend on which one you're using... – Martin Atkins