96 lines
1.8 KiB
HCL
96 lines
1.8 KiB
HCL
variable "proxmox_endpoint" {
|
|
description = "URL HTTPS Proxmox"
|
|
type = string
|
|
}
|
|
|
|
variable "proxmox_api_token" {
|
|
description = "Token API Proxmox"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "proxmox_insecure" {
|
|
description = "Skip TLS"
|
|
type = bool
|
|
}
|
|
|
|
variable "node_name" {
|
|
description = "Nom du node PVE"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_public_key" {
|
|
description = "Cle SSH publique cloudinit"
|
|
type = string
|
|
}
|
|
|
|
variable "vm_count" {
|
|
description = "Nombre de VMs a deployer (1 a 90)"
|
|
type = number
|
|
|
|
validation {
|
|
condition = var.vm_count >= 1 && var.vm_count <= 90
|
|
error_message = "vm_count doit etre entre 1 et 90 (limite vm_id 9010-9099)."
|
|
}
|
|
}
|
|
|
|
variable "template_id" {
|
|
description = "ID Proxmox du template a cloner"
|
|
type = number
|
|
default = 100
|
|
}
|
|
|
|
variable "vm_cpu_sockets" {
|
|
description = "Nombre de sockets alloues a la VM"
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "vm_cpu_cores" {
|
|
description = "Nombre de vCPU alloues a la VM"
|
|
type = number
|
|
default = 12
|
|
}
|
|
|
|
variable "vm_cpu_hotplugged" {
|
|
description = "Nombre de vCPUs actifs au boot"
|
|
type = number
|
|
default = 2
|
|
}
|
|
|
|
variable "vm_memory" {
|
|
description = "RAM dediee a la VM en MiB"
|
|
type = number
|
|
default = 1024
|
|
}
|
|
|
|
variable "vm_disk_size" {
|
|
description = "Taille du disque en GiB"
|
|
type = number
|
|
default = 10
|
|
}
|
|
|
|
variable "bridge" {
|
|
description = "Bridge Proxmox"
|
|
type = string
|
|
default = "vmbr0"
|
|
}
|
|
|
|
variable "vlan_id" {
|
|
description = "VLAN tag applique"
|
|
type = number
|
|
default = 90
|
|
}
|
|
|
|
variable "ci_user" {
|
|
description = "Compte cree par cloud-init"
|
|
type = string
|
|
default = "nidoradmin"
|
|
}
|
|
|
|
variable "gateway" {
|
|
description = "Gateway IPv4 du subnet"
|
|
type = string
|
|
default = "10.1.90.1"
|
|
}
|