All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
Inject SSH public key through Terraform/cloud-init from Gitea secret so access can be rotated without rebuilding the template image.
15 lines
403 B
HCL
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"
|
|
}
|