working and a bit modular

This commit is contained in:
jdn
2025-03-27 22:42:49 +01:00
commit 2df3f3636c
6 changed files with 214 additions and 0 deletions

22
tf_code/variables.tf Normal file
View File

@@ -0,0 +1,22 @@
variable "PROXMOX_VE_ENDPOINT" {
type = string
default = "https://FQDN/api2/json"
}
variable "PROXMOX_VE_API_TOKEN" {
type = string
default = "user@pam!token-name=xxx-xxx-xxx-xxx"
}
variable "unciel_eu" {
description = "Parent map key is container hostname. mount_points map key is container's path mount_point."
type = map(object({
vm_id = number
memory = optional(number, 512)
tags = optional(set(string))
mount_points = map(object({
size = optional(string, "2G")
volume = optional(string, "local-lvm")
}))
}))
}