101 lines
2.1 KiB
Terraform
101 lines
2.1 KiB
Terraform
variable "proxmox_endpoint" {
|
|
description = "Proxmox API endpoint."
|
|
type = string
|
|
default = "https://10.0.50.110:8006/"
|
|
}
|
|
|
|
variable "proxmox_insecure" {
|
|
description = "Allow insecure TLS for Proxmox API."
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "proxmox_api_token_file" {
|
|
description = "Path to file containing Proxmox API token."
|
|
type = string
|
|
default = ".secrets/api_token"
|
|
}
|
|
|
|
variable "proxmox_node_name" {
|
|
description = "Proxmox node where VM will be created."
|
|
type = string
|
|
default = "rbmk2"
|
|
}
|
|
|
|
variable "proxmox_template_vm_id" {
|
|
description = "Template VM ID used for clone."
|
|
type = number
|
|
default = 169
|
|
}
|
|
|
|
variable "proxmox_datastore_id" {
|
|
description = "Datastore used for clone and cloud-init."
|
|
type = string
|
|
default = "local-lvm"
|
|
}
|
|
|
|
variable "proxmox_bridge" {
|
|
description = "Proxmox bridge name."
|
|
type = string
|
|
default = "vmbr0"
|
|
}
|
|
|
|
variable "vm_name" {
|
|
description = "Wazuh VM name."
|
|
type = string
|
|
default = "terraform-testvm-1"
|
|
}
|
|
|
|
variable "vm_id" {
|
|
description = "Proxmox VMID for the Wazuh VM."
|
|
type = number
|
|
default = 104
|
|
}
|
|
|
|
variable "vm_cpu_sockets" {
|
|
description = "VM CPU sockets."
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "vm_cpu_cores" {
|
|
description = "VM CPU cores."
|
|
type = number
|
|
default = 4
|
|
}
|
|
|
|
variable "vm_memory_mb" {
|
|
description = "VM memory in MB."
|
|
type = number
|
|
default = 8192
|
|
}
|
|
|
|
variable "vm_ipv4_cidr" {
|
|
description = "VM IPv4 address in CIDR format."
|
|
type = string
|
|
default = "10.1.50.125/24"
|
|
}
|
|
|
|
variable "vm_gateway" {
|
|
description = "VM default gateway."
|
|
type = string
|
|
default = "10.1.50.1"
|
|
}
|
|
|
|
variable "vm_ssh_username" {
|
|
description = "Cloud-init username for SSH."
|
|
type = string
|
|
default = "devops"
|
|
}
|
|
|
|
variable "vm_ssh_port" {
|
|
description = "SSH port exposed by company policy."
|
|
type = number
|
|
default = 42315
|
|
}
|
|
|
|
variable "vm_ssh_public_key" {
|
|
description = "SSH public key inserted via cloud-init."
|
|
type = string
|
|
}
|