mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-26 23:33:17 +00:00
58 lines
1.2 KiB
HCL
58 lines
1.2 KiB
HCL
variable "proxmox_server" {
|
|
description = "Proxmox server URL"
|
|
type = string
|
|
sensitive = false
|
|
}
|
|
|
|
|
|
variable "proxmox_server_ssh" {
|
|
description = "Proxmox server ssh url"
|
|
type = string
|
|
sensitive = false
|
|
}
|
|
|
|
variable "proxmox_username_ssh" {
|
|
description = "Proxmox server ssh username"
|
|
type = string
|
|
sensitive = false
|
|
}
|
|
|
|
variable "proxmox_password_ssh" {
|
|
description = "Proxmox server ssh password"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "proxmox_apikey" {
|
|
description = "Proxmox server api key"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "node_name" {
|
|
default = "fenix"
|
|
}
|
|
|
|
# Lista de VMs (override de valores específicos)
|
|
variable "proxmox_k8s_vms" {
|
|
type = list(object({
|
|
name = string
|
|
vm_id = number
|
|
node_name = string
|
|
ip = string
|
|
ip2 = string
|
|
ip3 = string
|
|
cores = optional(number)
|
|
memory = optional(number)
|
|
data_store = optional(string)
|
|
gateway = string
|
|
disk_size = optional(number)
|
|
extra_users = optional(list(object({
|
|
name = string
|
|
password = string
|
|
groups = list(string)
|
|
})))
|
|
extra_packages = optional(list(string))
|
|
extra_runcmd = optional(list(string))
|
|
}))
|
|
} |