Add initial Terraform configuration for Azure and Proxmox resources

This commit is contained in:
2026-03-01 14:16:44 +02:00
parent 44d658745e
commit b11172504d
17 changed files with 869 additions and 0 deletions

39
terraform.tf Normal file
View File

@@ -0,0 +1,39 @@
terraform {
backend "azurerm" {}
required_version = ">=1.11.1"
required_providers {
proxmox = {
source = "bpg/proxmox"
version = ">=0.89.1"
}
ipify = {
source = "rerichardjr/ipify"
version = ">= 1.0.0"
}
azurerm = {
source = "hashicorp/azurerm"
version = ">=4.56.0"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = ">=5.14.0"
}
}
}
provider "proxmox" {
endpoint = var.pve_api_url
api_token = var.pve_token
insecure = false
}
provider "azurerm" {
features { }
subscription_id = var.azure_subscription_id
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
}