add caddy

This commit is contained in:
tolerryan
2026-08-11 05:43:41 +00:00
parent f4289041ac
commit 3b50ecdb2e
4 changed files with 154 additions and 1 deletions

52
lxc/caddy/vars.tf Normal file
View File

@@ -0,0 +1,52 @@
# ---------------------------------------------------------------
# General container settings (things that rarely change)
# ---------------------------------------------------------------
variable "start_on_boot" {
type = bool
default = true
}
variable "unprivileged" {
type = bool
default = true
}
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 = 64
}
# ---------------------------------------------------------------
# Initialization specifics
# ---------------------------------------------------------------
variable "hostname" { default = "caddy" }
variable "vm_id" { default = "106" }
variable "ip_address" { default = "192.168.0.6/24" }
variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" }
variable "memory" { default = 2048 } # Sets dedicated RAM to 2048 MB (2 GB)
variable "swap" { default = 1024 } # Sets swap space to 1024 MB (1 GB)
variable "cores" { default = 3 }
# ---------------------------------------------------------------
# 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 = "" }