Try to make the ordering of block devices deterministic.

This commit is contained in:
Magnus Andersson 2024-01-12 19:31:54 +01:00
parent 8ce2e9d149
commit 557e644b29
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

13
kube.tf
View file

@ -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]"]
}