100 lines
2.3 KiB
HCL
100 lines
2.3 KiB
HCL
variable "proxmox_endpoint" {
|
|
description = "Proxmox URL endpoint"
|
|
type = string
|
|
}
|
|
|
|
variable "proxmox_api_token" {
|
|
description = "Proxmox API token"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "node_name" {
|
|
description = "Proxmox host for the VM"
|
|
type = string
|
|
}
|
|
|
|
variable "node_datastore" {
|
|
description = "Datastore used for VM storage"
|
|
type = string
|
|
default = "local-lvm"
|
|
}
|
|
|
|
variable "vm_template" {
|
|
description = "Template of the VM"
|
|
type = string
|
|
#default = "ubuntu-cloud"
|
|
default = "Debian-12-Template"
|
|
}
|
|
|
|
variable "vm_name" {
|
|
description = "Hostname of the VM"
|
|
type = string
|
|
}
|
|
|
|
variable "vm_user" {
|
|
description = "Admin user of the VM"
|
|
type = string
|
|
default = "debian"
|
|
}
|
|
|
|
variable "vm_user_sshkey" {
|
|
description = "Admin user SSH key of the VM"
|
|
type = string
|
|
default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd97G/Uw3zlnhVByjpHZFw9FDa88phFUMtYfstTq7wYlUOJB2rdLPpU0bAjIpvpYmHOmBNseWYKaOT7EXNdxWPWJGuoen23tqdSzhnOV0LJz8zbCIA0Ykz/XOqRyJkq6qUw+L3atDxVC5pSSSY279yJtuQ2nmVld2KWDY4lnyZzZT5eQsrxCbT57hVMLCKcMKNb4QnYlLgnyHW8DyWHGG5GEWF9skFSPlmwY5s5H3OYg3u8ijuGjenjDTzLfRUzFltGJ2kBYbIn1iailArKpCiasmJyyja+YuYn3WwaNcl8Tpqa8eI52/LtOXDMwUKzvRJ6D6INEr/1duGYP/fQSEH root@ansible"
|
|
}
|
|
|
|
variable "vm_cpu" {
|
|
description = "Number of CPU cores of the VM"
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "vm_ram" {
|
|
description = "Number of RAM (MB) of the VM"
|
|
type = number
|
|
default = 1024
|
|
}
|
|
|
|
variable "vm_bios" {
|
|
description = "Type of BIOS used for the VM"
|
|
type = string
|
|
default = "ovmf"
|
|
}
|
|
|
|
variable "vm_machine" {
|
|
description = "Type of machine used for the VM"
|
|
type = string
|
|
default = "q35"
|
|
}
|
|
|
|
#variable "vm_vlan" {
|
|
# description = "VLAN of the VM"
|
|
# type = number
|
|
# #default = 66
|
|
#}
|
|
|
|
variable "vm_tags" {
|
|
description = "Tags for the VM"
|
|
type = list(any)
|
|
default = ["test"]
|
|
}
|
|
|
|
variable "vm_address" {
|
|
description = "IP v4 address for the VM - CIDR format"
|
|
type = string
|
|
# default = "q35"
|
|
}
|
|
|
|
variable "vm_gateway" {
|
|
description = "Gateway IP v4 address for the VM"
|
|
type = string
|
|
default = "10.121.38.254"
|
|
}
|
|
|
|
|
|
variable "vm_id" {
|
|
description = "VM identifier"
|
|
type = string
|
|
}
|