feat(terraform): create hetzner server and apex A record

This commit is contained in:
Noel Sabia committed 2026-10-27 14:30:59 +01:00
1 parent 3335482efc
commit 8e0c1a8796
6 files changed
+96 -26

No files matched your search

+27 -5
View File
@@ -1,10 +1,8 @@
# 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
}
#
# server_host is gone: Terraform now creates the server, so its IP is an output
# rather than an input.
variable "ssh_user" {
description = "SSH user Terraform logs in as."
@@ -17,6 +15,30 @@ variable "ssh_private_key_path" {
type = string
}
variable "ssh_public_key_path" {
description = "Path to the matching public key, installed at server creation."
type = string
default = "~/.ssh/cv_infra.pub"
}
variable "server_type" {
description = "Hetzner server type. cx22 gives 2 vCPU and 4 GB, the floor for a control plane."
type = string
default = "cx22"
}
variable "server_image" {
description = "Hetzner image for the base system."
type = string
default = "ubuntu-24.04"
}
variable "server_location" {
description = "Hetzner location, e.g. nbg1, fsn1, hel1."
type = string
default = "nbg1"
}
variable "domain" {
description = "Apex domain served by the site, e.g. noelsabia.dev."
type = string