Try to make the ordering of block devices deterministic.
This commit is contained in:
parent
8ce2e9d149
commit
557e644b29
13
kube.tf
13
kube.tf
|
@ -53,12 +53,11 @@ resource "openstack_compute_instance_v2" "kube" {
|
|||
destination_type = "volume"
|
||||
boot_index = 0
|
||||
}
|
||||
|
||||
block_device {
|
||||
uuid = resource.openstack_blockstorage_volume_v3.kubevolumesnap[count.index].id
|
||||
source_type = "volume"
|
||||
destination_type = "volume"
|
||||
boot_index = -1
|
||||
}
|
||||
}
|
||||
|
||||
resource "openstack_compute_volume_attach_v2" "snapvolattach" {
|
||||
instance_id = openstack_compute_instance_v2.kube[count.index].id
|
||||
volume_id = openstack_blockstorage_volume_v3.kubevolumesnap[count.index].id
|
||||
count = var.kubesize
|
||||
depends_on = ["resource.openstack_compute_instance_v2.kube[count.index]"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue