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:
19
main.tf
Normal file
19
main.tf
Normal 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
7
terraform.tfvars.example
Normal 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
21
variables.tf
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user