71 lines
1.4 KiB
HCL
71 lines
1.4 KiB
HCL
variable "name" {
|
|
description = "Virtual Machine name"
|
|
type = string
|
|
}
|
|
|
|
variable "vm_id" {
|
|
description = "Virtual Machine id"
|
|
type = number
|
|
}
|
|
|
|
variable "node_name" {
|
|
description = "Proxmox node name"
|
|
type = string
|
|
default = "mop"
|
|
}
|
|
|
|
variable "cores" {
|
|
description = "Number of CPU cores for this virtual machine"
|
|
type = number
|
|
default = 2
|
|
}
|
|
|
|
variable "memory" {
|
|
description = "Memory RAM for this virtual machine"
|
|
type = number
|
|
default = 2048
|
|
}
|
|
|
|
variable "balloon" {
|
|
description = "Minimum vm memory, using ballooning devide to reach Proxmox node memory target."
|
|
type = number
|
|
default = 1024
|
|
}
|
|
|
|
variable "template_id" {
|
|
description = "Virtual machine template ID"
|
|
type = number
|
|
}
|
|
|
|
variable "ssh_public_key" {
|
|
description = "Public SSH key for cloud-init user"
|
|
type = string
|
|
}
|
|
|
|
variable "hostname" {
|
|
description = "Virtual Machine hostname (<service-name>)"
|
|
type = string
|
|
default = "test"
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "Virtual Machine domain (example.fr)"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "disk_size" {
|
|
description = "Disk size for the virtual machine"
|
|
type = number
|
|
default = 10
|
|
}
|
|
|
|
variable "proxmox_host_ip" {
|
|
description = "Proxmox host base ip"
|
|
type = string
|
|
}
|
|
|
|
variable "vm_ip_address" {
|
|
description = "Virtual machine ip"
|
|
type = string
|
|
} |