feat: add bare bones Proxmox Terraform scaffold

Adds provider config, variables, and an example tfvars file using
the bpg/proxmox provider. No resources are managed yet — existing
Proxmox setup is untouched.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
bob
2026-04-10 20:08:11 -05:00
parent 106971b94d
commit ac41e3448e
3 changed files with 47 additions and 0 deletions

19
main.tf Normal file
View File

@@ -0,0 +1,19 @@
terraform {
required_version = ">= 1.0"
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "~> 0.73"
}
}
}
provider "proxmox" {
endpoint = var.proxmox_endpoint
username = var.proxmox_username
password = var.proxmox_password
# Set to true if using a self-signed certificate (common on home labs)
insecure = var.proxmox_insecure
}

7
terraform.tfvars.example Normal file
View File

@@ -0,0 +1,7 @@
# Copy this file to terraform.tfvars and fill in your values.
# terraform.tfvars is gitignored to keep secrets out of version control.
proxmox_endpoint = "https://192.168.1.10:8006/"
proxmox_username = "terraform@pve"
proxmox_password = "changeme"
proxmox_insecure = true

21
variables.tf Normal file
View File

@@ -0,0 +1,21 @@
variable "proxmox_endpoint" {
description = "URL of the Proxmox API endpoint, e.g. https://192.168.1.10:8006/"
type = string
}
variable "proxmox_username" {
description = "Proxmox user in the form user@realm, e.g. terraform@pve"
type = string
}
variable "proxmox_password" {
description = "Password for the Proxmox user"
type = string
sensitive = true
}
variable "proxmox_insecure" {
description = "Skip TLS certificate verification (set true for self-signed certs)"
type = bool
default = true
}