feat: add ssh_key variable support to cloud-init module

This commit is contained in:
Lukas Greve
2025-09-10 20:40:25 +02:00
committed by Lukas Greve (aider)
parent 798cc871c8
commit 3498b877c8
2 changed files with 12 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
resource "libvirt_cloudinit_disk" "commoninit" {
name = var.cloudinit_filename
user_data = templatefile("${path.module}/../environments/cloud_init.yaml", {})
pool = var.pool_name
name = var.cloudinit_filename
user_data = templatefile("${path.module}/cloud_init.yaml", {
ssh_key = var.ssh_key
})
pool = var.pool_name
depends_on = [libvirt_pool.tf_tmp_storage]
}