terraform: use volumes instead of ephemeral local disks on STACKIT

Ephemeral local disks are discouraged on STACKIT.
Use volumes instead.
This sets an upper bound of 5GB on the boot disk.
If Constellation OS images ever grow beyond that, we will run into
problems.
This commit is contained in:
Malte Poll 2024-02-28 14:25:10 +01:00
parent 12f02e4320
commit 5c8f53a2d8

View File

@ -58,7 +58,8 @@ resource "openstack_compute_instance_v2" "instance_group_member" {
block_device {
uuid = var.image_id
source_type = "image"
destination_type = "local"
destination_type = "volume"
volume_size = "5"
boot_index = 0
delete_on_termination = true
}