38 lines
910 B
HCL
38 lines
910 B
HCL
# Fichier: terraform/environments/prod/variables.tf
|
|
|
|
variable "target_node" {
|
|
description = "Le nom du noeud Proxmox sur lequel déployer les VMs."
|
|
type = string
|
|
default = "pve01"
|
|
}
|
|
|
|
variable "proxmox_url" {
|
|
description = "URL du noeud Proxmox sur lequel déployer les VMs."
|
|
type = string
|
|
}
|
|
|
|
variable "proxmox_api_token" {
|
|
description = "Token pour accéder à l'API Proxmox"
|
|
type = string
|
|
}
|
|
|
|
variable "admin_ssh_public_key_path" {
|
|
description = "Chemin vers le fichier de la clé SSH publique à autoriser."
|
|
type = string
|
|
default = "~/.ssh/keys/id_rsa.pub"
|
|
}
|
|
|
|
variable "monitoring_vms" {
|
|
description = "Une map décrivant les VMs pour la supervision."
|
|
type = map(object({
|
|
os = string
|
|
cores = number
|
|
cpu_type = string
|
|
memory = number
|
|
disk_gb = number
|
|
ip = string
|
|
gateway = string
|
|
}))
|
|
default = {}
|
|
}
|