first commit

This commit is contained in:
Melchior Reimers
2026-02-04 12:16:10 +01:00
commit 65de284a12
7 changed files with 358 additions and 0 deletions

65
variables.tf Normal file
View File

@@ -0,0 +1,65 @@
variable "hcloud_token" {
description = "Hetzner Cloud API token"
type = string
sensitive = true
}
variable "server_name" {
description = "Server hostname"
type = string
default = "clawdbot"
}
variable "server_type" {
description = "Hetzner server type (cx22 = 2 vCPU, 4GB RAM)"
type = string
default = "cx22"
}
variable "image" {
description = "OS image"
type = string
default = "ubuntu-24.04"
}
variable "location" {
description = "Hetzner datacenter"
type = string
default = "nbg1" # Nuremberg, DE
}
variable "ssh_public_key" {
description = "SSH public key for access"
type = string
}
variable "ssh_keys" {
description = "Additional SSH key IDs"
type = list(string)
default = []
}
variable "username" {
description = "Non-root user to create"
type = string
default = "clawdbot"
}
variable "tailscale_auth_key" {
description = "Tailscale auth key (optional)"
type = string
default = ""
sensitive = true
}
variable "allowed_ssh_ips" {
description = "IPs allowed to SSH (use your static IP or VPN range)"
type = list(string)
default = [] # Empty = SSH only via Tailscale if enable
}
variable "environment" {
description = "Environment label"
type = string
default = "production"
}