Empty main.tf, dns.tf, variables.tf, outputs.tf and versions.tf matching OKF_CV_Website/architecture/terraform.md. Variables and outputs are written out; resources stay unwritten until the server facts are settled.
15 lines
402 B
Terraform
15 lines
402 B
Terraform
# Values other tooling and the operator need after apply.
|
|
|
|
output "server_ip" {
|
|
description = "Public IPv4 of server0."
|
|
value = var.server_host
|
|
}
|
|
|
|
output "proxy_url" {
|
|
description = "Public URL served by Caddy."
|
|
value = "https://${var.domain}"
|
|
}
|
|
|
|
# Kubeconfig stays on this machine and never enters Git. Add its path here once
|
|
# main.tf writes it, e.g. "${path.module}/kubeconfig".
|