All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 18s
Remove guest-agent enrollment workflow, pass TS auth key through Terraform variables/secrets, and run tailscale up with tag:k8s during cloud-init bootstrap alongside SSH key injection.
14 lines
375 B
HCL
14 lines
375 B
HCL
data "template_file" "cloud_init_global" {
|
|
template = file("${path.module}/files/cloud_init_global.tpl")
|
|
|
|
vars = {
|
|
SSH_KEY_PUBLIC = var.SSH_KEY_PUBLIC
|
|
TS_AUTHKEY = var.TS_AUTHKEY
|
|
}
|
|
}
|
|
|
|
resource "local_file" "cloud_init_global" {
|
|
content = data.template_file.cloud_init_global.rendered
|
|
filename = "${path.module}/files/rendered/cloud_init_global.yaml"
|
|
}
|