infra/terraform/variables.tf
2026-01-16 09:25:46 -06:00

148 lines
3.2 KiB
HCL

# Vultr Variables
variable "vultr_api_key" {
description = "Vultr API key"
type = string
sensitive = true
default = ""
}
variable "network_bridge" {
description = "Network bridge to use for VMs"
type = string
default = "vmbr0"
}
variable "control_plane_count" {
description = "Number of control plane nodes"
type = number
default = 3
}
variable "control_plane_cores" {
description = "Number of CPU cores for control plane nodes"
type = number
default = 4
}
variable "control_plane_memory" {
description = "Memory in MB for control plane nodes"
type = number
default = 8192
}
variable "control_plane_disk_size" {
description = "Disk size for control plane nodes (in GB)"
type = number
default = 32
}
variable "worker_count" {
description = "Number of worker nodes"
type = number
default = 3
}
variable "worker_cores" {
description = "Number of CPU cores for worker nodes"
type = number
default = 4
}
variable "worker_memory" {
description = "Memory in MB for worker nodes"
type = number
default = 8192
}
variable "worker_disk_size" {
description = "Disk size for worker nodes (in GB)"
type = number
default = 64
}
variable "ssh_user" {
description = "SSH user for the VMs"
type = string
default = "debian"
}
variable "ssh_public_key" {
description = "SSH public key for access to VMs"
type = string
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHLyVSEEAEbGZZqwPwEup0XrlTpu3x3iF9ExvvQPA4xN graham@mcintire.me"
}
# DNS Provider Variables
variable "dnsimple_token" {
description = "DNSimple API token"
type = string
sensitive = true
}
variable "dnsimple_account" {
description = "DNSimple account ID"
type = string
default = "143471"
}
variable "porkbun_api_key" {
description = "Porkbun API key"
type = string
sensitive = true
}
variable "porkbun_secret_api_key" {
description = "Porkbun secret API key"
type = string
sensitive = true
}
# Home Proxmox Cluster Variables
variable "proxmox_home_api_url" {
description = "Home Proxmox cluster API URL"
type = string
default = "https://10.0.15.101:8006"
}
variable "proxmox_home_api_token" {
description = "Home Proxmox API token ID"
type = string
sensitive = true
}
variable "proxmox_home_api_secret" {
description = "Home Proxmox API token secret"
type = string
sensitive = true
}
variable "proxmox_home_tls_insecure" {
description = "Allow insecure TLS connections to home Proxmox"
type = bool
default = true
}
variable "proxmox_home_nodes" {
description = "List of home Proxmox nodes"
type = list(string)
default = ["node1", "node2", "node3"]
}
variable "talos_template_vmid" {
description = "VMID of Talos template"
type = number
default = 9001
}
variable "talos_template_node" {
description = "Proxmox node where Talos template is stored"
type = string
default = "node1"
}
variable "talos_storage" {
description = "Ceph storage pool for Talos VMs"
type = string
default = "ceph"
}