Files
proxmox-loki-terraform/variables.tf

81 lines
1.8 KiB
HCL

# Proxmox API Configuration
variable "proxmox_api_url" {
description = "URL для Proxmox API (например: https://proxmox.example.com:8006/api2/json)"
type = string
}
variable "proxmox_token_id" {
description = "Proxmox API Token ID (например: user@pam!token_name)"
type = string
sensitive = true
}
variable "proxmox_token_secret" {
description = "Proxmox API Token Secret"
type = string
sensitive = true
}
variable "proxmox_tls_insecure" {
description = "Отключить проверку SSL сертификата"
type = bool
default = true
}
# Proxmox Target Configuration
variable "target_node" {
description = "Имя целевого Proxmox узла"
type = string
}
variable "storage" {
description = "Имя хранилища в Proxmox"
type = string
default = "local-lvm"
}
variable "template_name" {
description = "Имя шаблона Ubuntu 22.04"
type = string
default = "ubuntu-22.04-cloudimg"
}
variable "network_bridge" {
description = "Сетевой мост Proxmox"
type = string
default = "vmbr0"
}
# VM Configuration
variable "vm_name" {
description = "Имя виртуальной машины"
type = string
default = "loki-vm"
}
variable "vm_cores" {
description = "Количество CPU ядер"
type = number
default = 4
}
variable "vm_memory" {
description = "Размер RAM в MB"
type = number
default = 4096
}
variable "vm_disk_size" {
description = "Размер диска (например: 31G)"
type = string
default = "31G"
}
# SSH Configuration
variable "ssh_user" {
description = "SSH пользователь для подключения к VM"
type = string
default = "ubuntu"
}