Files
TerraHome/terraform/cloud-init.tf
MichaelFisher1997 17834b3aa7
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
update: rotate SSH access via cloud-init secret
Inject SSH public key through Terraform/cloud-init from Gitea secret so access can be rotated without rebuilding the template image.
2026-02-28 12:36:20 +00:00

15 lines
403 B
HCL

data "template_file" "cloud_init_global" {
template = file("${path.module}/files/cloud_init_global.tpl")
vars = {
hostname = "generic"
domain = "home.arpa"
SSH_KEY_PUBLIC = var.SSH_KEY_PUBLIC
}
}
resource "local_file" "cloud_init_global" {
content = data.template_file.cloud_init_global.rendered
filename = "${path.module}/files/rendered/cloud_init_global.yaml"
}