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.
29 lines
701 B
Terraform
29 lines
701 B
Terraform
# Inputs: the server, its SSH access, and the domain.
|
|
# Nothing secret belongs here; secrets come from the environment or tfvars.
|
|
|
|
variable "server_host" {
|
|
description = "Public IP or hostname of server0."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_user" {
|
|
description = "SSH user Terraform logs in as."
|
|
type = string
|
|
default = "root"
|
|
}
|
|
|
|
variable "ssh_private_key_path" {
|
|
description = "Path to the private key on this machine."
|
|
type = string
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "Apex domain served by the site, e.g. noelsabia.dev."
|
|
type = string
|
|
}
|
|
|
|
variable "cloudflare_zone_id" {
|
|
description = "Zone ID of the domain in Cloudflare."
|
|
type = string
|
|
}
|