Add boot index to kube block devices
This commit is contained in:
parent
171ea5a1bd
commit
57064f2eb6
4
kube.tf
4
kube.tf
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue