initial template

This commit is contained in:
CC
2026-05-20 22:59:27 +01:00
commit b45851e888
8 changed files with 152 additions and 0 deletions

13
terraform/variables.tf Normal file
View File

@@ -0,0 +1,13 @@
variable "vm_name" { type = string }
variable "node_name" { type = string }
variable "node_datastore" { type = string }
variable "bridge" { type = string, default = "vmbr0" }
variable "vm_cpu" { type = number, default = 2 }
variable "vm_ram" { type = number, default = 4096 }
variable "vm_size" { type = string, default = "20G" }
variable "vm_bios" { type = string, default = "ovmf" }
variable "vm_machine" { type = string, default = "q35" }
variable "vm_tags" { type = list(string), default = ["terraform"] }
variable "vm_user_sshkey" { type = string }
variable "app_name" { type = string, default = "myservice" }
variable "app_port" { type = number, default = 8080 }