Migration provider bpg, templates cloud-init propres, cluster k3s HA (control-plane)
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "Telmate/proxmox"
|
||||
version = "3.0.2-rc07"
|
||||
source = "bpg/proxmox"
|
||||
version = "0.111.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
pm_api_url = "https://192.168.76.43:8006/api2/json"
|
||||
pm_api_token_id = "terraform-prov@pve!mytoken"
|
||||
pm_api_token_secret = "5af2e198-4a8e-49ef-9a1e-56a6718e3abd"
|
||||
pm_tls_insecure = true
|
||||
endpoint = var.proxmox_endpoint
|
||||
api_token = var.proxmox_api_token # format complet : "user@realm!tokenid=secret-uuid"
|
||||
insecure = true # certificat auto-signé
|
||||
|
||||
# Limiter le parallélisme force le provider à être plus séquentiel sur les droits
|
||||
pm_parallel = 1
|
||||
|
||||
# Optionnel : désactive le scan complet du stockage au démarrage
|
||||
pm_timeout = 600
|
||||
# Ajoute ces deux lignes pour stabiliser la session API
|
||||
pm_log_enable = true
|
||||
pm_log_file = "terraform-plugin-proxmox.log"
|
||||
# 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"
|
||||
# }
|
||||
}
|
||||
Reference in New Issue
Block a user