move up files to one level and erase default public key

This commit is contained in:
Lukas Greve
2025-10-18 13:18:32 +02:00
parent f5e85371e4
commit 91e23f0765
16 changed files with 72 additions and 72 deletions

View File

@@ -0,0 +1,11 @@
# Only create the cloudinit disk if enabled
resource "libvirt_cloudinit_disk" "commoninit" {
count = var.enable_cloudinit ? var.instance_count : 0
name = "${var.cloudinit_filename}-${count.index}"
user_data = templatefile("${path.module}/cloud_init.yaml", {
ssh_key = var.ssh_key
})
pool = "${var.vm_name}-pool"
depends_on = [libvirt_pool.tf_tmp_storage]
}