mirror of
https://github.com/cole-maxwell1/todo-hetzner.git
synced 2026-10-27 19:02:49 -05:00
Implement the server-rendered Go todo application with PostgreSQL persistence, Tailwind styling, health checks, and test coverage. Provision production and staging infrastructure with OpenTofu, including private networking, static IPs, Object Storage backups, and load balancing. Configure Rocky Linux hosts with Ansible, rootless Podman, PostgreSQL, WAL-G backup automation, staging restores, and generated inventory.
68 lines
1.0 KiB
Terraform
68 lines
1.0 KiB
Terraform
variable "hcloud_token" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "project_name" {
|
|
type = string
|
|
default = "todo"
|
|
}
|
|
|
|
variable "network_zone" {
|
|
type = string
|
|
default = "eu-central"
|
|
}
|
|
|
|
variable "server_location" {
|
|
type = string
|
|
default = "nbg1"
|
|
}
|
|
|
|
variable "server_type" {
|
|
type = string
|
|
default = "cx22"
|
|
}
|
|
|
|
variable "ssh_key_ids" {
|
|
type = list(number)
|
|
}
|
|
|
|
variable "ssh_source_cidrs" {
|
|
type = list(string)
|
|
description = "Trusted public CIDRs permitted to SSH to nodes."
|
|
}
|
|
|
|
variable "prod_private_ip" {
|
|
type = string
|
|
default = "10.0.1.10"
|
|
}
|
|
|
|
variable "staging_private_ip" {
|
|
type = string
|
|
default = "10.0.1.20"
|
|
}
|
|
|
|
variable "s3_access_key" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "s3_secret_key" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "s3_endpoint" {
|
|
type = string
|
|
description = "Hetzner Object Storage endpoint, for example https://nbg1.your-objectstorage.com."
|
|
}
|
|
|
|
variable "s3_region" {
|
|
type = string
|
|
default = "nbg1"
|
|
}
|
|
|
|
variable "bucket_name" {
|
|
type = string
|
|
}
|