Some checks failed
Gitea Actions Demo / Terraform Plan (push) Failing after 15s
- Remove duplicate variables (alpaca_count, llama_count) - Remove unused variables (vm_name, disk_type) - Fix outputs to use correct variable names - Fix cloud-init template to not overwrite source file - Fix hardcoded hostname in cloud-init template - Fix typo in SSH_KEY_PUBLIC description
16 lines
439 B
HCL
16 lines
439 B
HCL
data "template_file" "cloud_init_global" {
|
|
template = file("${path.module}/files/cloud_init_global.tpl")
|
|
|
|
vars = {
|
|
hostname = "generic"
|
|
domain = "home.arpa"
|
|
TS_AUTHKEY = var.TS_AUTHKEY
|
|
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"
|
|
}
|