Files
homeserver/infra/terraform/proxmox/variables.tf
Taqi Tahmid a68f3e0e70
All checks were successful
ci/woodpecker/push/demo-workflow Pipeline was successful
swap proxmox backend from s3 to gitlab http
2026-01-15 00:54:59 +02:00

94 lines
1.9 KiB
HCL

# variables for Terraform HTTP backend
variable "http_username" {
description = "Username for HTTP backend"
type = string
sensitive = true
}
variable "http_password" {
description = "Password for HTTP backend"
type = string
sensitive = true
}
variable "http_address" {
description = "HTTP backend address"
type = string
}
variable "http_lock_address" {
description = "HTTP backend lock address"
type = string
}
variable "http_unlock_address" {
description = "HTTP backend unlock address"
type = string
}
# Variables for Proxmox configuration
variable "pm_api_url" {
description = "Proxmox API URL"
type = string
sensitive = true
}
variable "pm_api_token" {
description = "Proxmox password"
type = string
sensitive = true
}
variable "pm_insecure" {
description = "Allow insecure connections to Proxmox API"
type = bool
default = true
}
variable "pm_user" {
description = "Proxmox user"
type = string
sensitive = true
}
variable "pm_ssh_public_key_path" {
description = "Path to SSH public key file"
type = string
}
variable "pm_ssh_private_key_path" {
description = "Path to SSH private key file"
type = string
}
variable "vms" {
description = "List of VMs to create"
type = list(object({
name = string
node_name = string
vm_id = number
ip_address = string
dns_servers = list(string)
gateway = string
cores = number
memory = number
disk_size = number
}))
}
variable "nodes" {
type = list(string)
default = ["homeserver1", "homeserver2", "homeserver3"]
}
variable "vm_user_name" {
description = "Username for the VM"
type = string
}
variable "vm_user_password" {
description = "Password for the VM user"
type = string
sensitive = true
}