21 lines
537 B
Terraform
21 lines
537 B
Terraform
terraform {
|
|
required_providers {
|
|
proxmox = {
|
|
source = "bpg/proxmox"
|
|
version = "0.111.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "proxmox" {
|
|
endpoint = var.proxmox_endpoint
|
|
api_token = var.proxmox_api_token # format complet : "user@realm!tokenid=secret-uuid"
|
|
insecure = true # certificat auto-signé
|
|
|
|
# SSH optionnel, seulement nécessaire pour certaines opérations avancées
|
|
# (upload de fichiers/snippets, import de disques bruts, etc.)
|
|
# ssh {
|
|
# agent = true
|
|
# username = "root"
|
|
# }
|
|
} |