This commit is contained in:
parent
4ed9ba0d24
commit
a90630ecb6
98 changed files with 2063 additions and 729 deletions
30
proxmox-infra/variables.tf
Normal file
30
proxmox-infra/variables.tf
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# proxmox-infra/variables.tf
|
||||
|
||||
variable "proxmox_api_url" {
|
||||
description = "The URL of the Proxmox API (e.g., https://192.168.1.10:8006/api2/json)"
|
||||
type = string
|
||||
# No default here, so OpenTofu will prompt or expect a .tfvars file/env var
|
||||
}
|
||||
|
||||
variable "proxmox_user" {
|
||||
description = "Proxmox user (e.g., root@pam or user@pve)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "proxmox_password" {
|
||||
description = "Proxmox user password"
|
||||
type = string
|
||||
sensitive = true # Mark as sensitive to hide in logs
|
||||
}
|
||||
|
||||
variable "proxmox_node" {
|
||||
description = "The Proxmox node name where VMs will be deployed (e.g., 'pve')"
|
||||
type = string
|
||||
}
|
||||
|
||||
# Example for templates - you might have different templates
|
||||
variable "nixos_template_id" {
|
||||
description = "VMID of the nixos cloud-init template"
|
||||
type = number
|
||||
# Example: default = 100
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue