first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
terraform {
|
||||
required_version = ">= 1.6.0"
|
||||
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "telmate/proxmox"
|
||||
version = "2.9.14"
|
||||
}
|
||||
}
|
||||
|
||||
# Le Backend S3 Souverain pour stocker l'état de l'infrastructure
|
||||
backend "s3" {
|
||||
bucket = "aegis-tfstate-souverain"
|
||||
key = "clients/client-base.tfstate"
|
||||
region = "eu-west-1" # À adapter selon l'hébergeur S3
|
||||
endpoint = "s3.win.be" # Exemple d'endpoint S3 belge
|
||||
skip_credentials_validation = true
|
||||
skip_region_validation = true
|
||||
}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
pm_api_url = "https://pve-belgium-01.aegis.local:8006/api2/json"
|
||||
pm_api_token_id = var.proxmox_token_id
|
||||
pm_api_token_secret = var.proxmox_token_secret
|
||||
pm_tls_insecure = true # Passer à 'false' en prod avec un vrai certificat Let's Encrypt
|
||||
}
|
||||
Reference in New Issue
Block a user