mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 13:17:41 +00:00
72 lines
2.1 KiB
HCL
72 lines
2.1 KiB
HCL
# ---------------------------------------------------------------
|
||
# General container settings (things that rarely change)
|
||
# ---------------------------------------------------------------
|
||
variable "start_on_boot" {
|
||
type = bool
|
||
default = true
|
||
}
|
||
|
||
variable "unprivileged" {
|
||
type = bool
|
||
default = false
|
||
}
|
||
|
||
variable "nesting_enabled" {
|
||
type = bool
|
||
default = true
|
||
}
|
||
|
||
# ---------------------------------------------------------------
|
||
# Disk sizes (primary + optional)
|
||
# ---------------------------------------------------------------
|
||
variable "datastore_id" {
|
||
type = string
|
||
default = "local-lvm"
|
||
}
|
||
|
||
variable "disk_size_gb" {
|
||
type = number
|
||
default = 196
|
||
}
|
||
|
||
variable "datastore_id_media" {
|
||
type = string
|
||
default = "watari"
|
||
}
|
||
|
||
variable "disk_size_gb_media" {
|
||
type = string
|
||
default = "10T"
|
||
}
|
||
|
||
variable "datastore_id_download_tmp" {
|
||
type = string
|
||
default = "intelssd"
|
||
}
|
||
|
||
variable "disk_size_gb_download_tmp" {
|
||
type = string
|
||
default = "500G"
|
||
}
|
||
# ---------------------------------------------------------------
|
||
# Initialization specifics
|
||
# ---------------------------------------------------------------
|
||
variable "hostname" { default = "grail" }
|
||
variable "vm_id" { default = "165" }
|
||
variable "ip_address" { default = "192.168.0.65/24" }
|
||
variable "gateway" { default = "192.168.0.1" }
|
||
variable "password" { default = "example" }
|
||
variable "memory" { default = 8048 } # Sets dedicated RAM to 2048 MB (2 GB)
|
||
variable "swap" { default = 1024 } # Sets swap space to 1024 MB (1 GB)
|
||
variable "cores" { default = 6 }
|
||
|
||
# ---------------------------------------------------------------
|
||
# Node & template file
|
||
# ---------------------------------------------------------------
|
||
variable "node_name" { default = "ryuk" }
|
||
variable "template_file_id" { default = "local:vztmpl/debian-13-custom.tar.zst" }
|
||
# ---------------------------------------------------------------
|
||
# (Optional) Mount point volume name – set if you enable mounts
|
||
# ---------------------------------------------------------------
|
||
# variable "mount_volume" { default = "" }
|