feature/terraform-init #1

Merged
bob merged 6 commits from feature/terraform-init into main 2026-04-10 22:02:52 -05:00
3 changed files with 47 additions and 0 deletions
Showing only changes of commit ac41e3448e - Show all commits

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
}