mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-09 05:49:24 +00:00
79fae0bb37
- Remove ISO upload and answer-file resources (pre-provisioned manually) - Remove null_resource wait/token steps (token created out-of-band) - Switch iso_file to iso_file_id referencing an existing Proxmox file ID - Add lifecycle ignore_changes for started and cdrom - Update README with proxmox-auto-install-assistant ISO prep instructions - Update default variables to match homelab environment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
100 lines
2.5 KiB
Terraform
100 lines
2.5 KiB
Terraform
variable "proxmox_endpoint" {
|
|
description = "URL of the existing Proxmox VE API (e.g. https://pve.example.com:8006)"
|
|
type = string
|
|
}
|
|
|
|
variable "proxmox_api_token" {
|
|
description = "API token for authenticating with the existing Proxmox host (user@realm!tokenid=secret)"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "proxmox_insecure" {
|
|
description = "Whether to skip TLS verification when connecting to the Proxmox API"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "target_node" {
|
|
description = "Name of the Proxmox node where the nested PVE VM will be created"
|
|
type = string
|
|
}
|
|
|
|
variable "vm_id" {
|
|
description = "VMID to assign to the nested PVE virtual machine"
|
|
type = number
|
|
default = 99900
|
|
}
|
|
|
|
variable "vm_name" {
|
|
description = "Name for the nested PVE virtual machine"
|
|
type = string
|
|
default = "pve-test-nested"
|
|
}
|
|
|
|
variable "cores" {
|
|
description = "Number of CPU cores to allocate to the nested PVE VM"
|
|
type = number
|
|
default = 4
|
|
}
|
|
|
|
variable "memory" {
|
|
description = "Amount of memory in MB to allocate to the nested PVE VM"
|
|
type = number
|
|
default = 8192
|
|
}
|
|
|
|
variable "disk_size" {
|
|
description = "Size of the primary disk in GB for the nested PVE VM"
|
|
type = number
|
|
default = 64
|
|
}
|
|
|
|
variable "disk_storage" {
|
|
description = "Proxmox storage pool for VM disks (must support raw format)"
|
|
type = string
|
|
default = "nas-iscsi-lvm"
|
|
}
|
|
|
|
variable "iso_file_id" {
|
|
description = "Proxmox file ID of the PVE installation ISO (e.g. nas-nfs:iso/proxmox-ve_9.1-1.iso)"
|
|
type = string
|
|
default = "nas-nfs:iso/proxmox-ve_9.1-1.iso"
|
|
}
|
|
|
|
variable "network_bridge" {
|
|
description = "Network bridge on the host to attach the nested PVE VM to"
|
|
type = string
|
|
default = "Core"
|
|
}
|
|
|
|
variable "test_vm_ip" {
|
|
description = "Static IP address to assign to the nested PVE instance"
|
|
type = string
|
|
}
|
|
|
|
variable "test_vm_gateway" {
|
|
description = "Default gateway for the nested PVE instance"
|
|
type = string
|
|
}
|
|
|
|
variable "test_vm_netmask_bits" {
|
|
description = "CIDR prefix length for the nested PVE network (e.g. 24 for /24)"
|
|
type = string
|
|
default = "24"
|
|
}
|
|
|
|
variable "test_vm_dns" {
|
|
description = "DNS server for the nested PVE instance"
|
|
type = string
|
|
default = "1.1.1.1"
|
|
}
|
|
|
|
variable "test_vm_password" {
|
|
description = "Root password for the nested PVE instance"
|
|
type = string
|
|
sensitive = true
|
|
default = "Testpass123!"
|
|
}
|
|
|