Add boot index to kube block devices

This commit is contained in:
Magnus Andersson 2024-01-12 11:23:58 +01:00
parent 171ea5a1bd
commit 57064f2eb6
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -37,15 +37,19 @@ resource "openstack_compute_instance_v2" "kube" {
network {
port = resource.openstack_networking_port_v2.kubeport[count.index].id
}
block_device {
uuid = resource.openstack_blockstorage_volume_v3.kubevolumeboot[count.index].id
source_type = "volume"
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
}
}