Homelab/terraform/variables.tf

65 lines
1.4 KiB
HCL

variable "pm_api_url" {
description = "Proxmox API URL"
type = string
default = "https://your-proxmox-ip:8006/api2/json"
}
variable "pm_api_token_id" {
description = "Proxmox API token ID"
type = string
default = "root@pam!your-token-name"
}
variable "pm_api_token_secret" {
description = "Proxmox API token secret"
type = string
}
variable "pm_tls_insecure" {
description = "Disable TLS verification"
type = bool
default = true
}
variable "target_node" {
description = "Proxmox target node"
type = string
default = "your-node-name"
}
variable "container_template" {
description = "OS template for the container"
type = string
default = "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
}
variable "container_user" {
description = "Username for the custom user"
type = string
default = "myuser"
}
variable "container_cores" {
description = "Number of CPU cores for the container"
type = number
default = 1
}
variable "container_memory" {
description = "Memory in MB for the container"
type = number
default = 512
}
variable "container_storage" {
description = "Storage name for the container"
type = string
default = "local-lvm"
}
variable "container_disk_size" {
description = "Disk size for the container in GB"
type = number
default = 8
}