This commit is contained in:
Hrankin, Aleksandr (contracted)
2026-02-19 11:34:13 +00:00
commit f243f440c3
191 changed files with 6183 additions and 0 deletions

View File

@@ -0,0 +1,137 @@
# --- Proxmox provider creds ---
variable "pm_api_url" {
type = string
}
variable "pm_api_token" {
type = string
sensitive = true
}
variable "pm_user" {
type = string
}
variable "pm_password" {
type = string
sensitive = true
}
# --- Target infra ---
variable "target_node" {
type = string
}
variable "bridge" {
type = string
default = "vmbr0"
}
# --- LXC конкретный контейнер ---
variable "lxc_packer_main_vm_id" {
type = number
}
variable "lxc_packer_main_hostname" {
type = string
}
variable "lxc_template_file_id" {
type = string
}
variable "lxc_os_type" {
type = string
default = "debian"
}
variable "lxc_unprivileged" {
type = bool
default = true
}
variable "lxc_nesting" {
type = bool
default = true
}
variable "lxc_cores" {
type = number
default = 1
}
variable "lxc_cpu_units" {
type = number
default = 1024
}
variable "lxc_memory" {
type = number
default = 512
}
variable "lxc_swap" {
type = number
default = 512
}
variable "lxc_rootfs_storage" {
type = string
default = "local-lvm"
}
variable "lxc_rootfs_size_gib" {
type = number
default = 8
}
variable "lxc_netif_name" {
type = string
default = "eth0"
}
variable "lxc_firewall" {
type = bool
default = true
}
variable "lxc_ipv4_address" {
type = string
default = "dhcp"
}
variable "lxc_ipv4_gateway" {
type = string
default = null
}
variable "lxc_dns_domain" {
type = string
default = null
}
variable "lxc_dns_servers" {
type = list(string)
default = []
}
variable "lxc_started" {
type = bool
default = true
}
variable "lxc_start_on_boot" {
type = bool
default = true
}
variable "lxc_root_password" {
type = string
sensitive = true
default = null
}
variable "lxc_ssh_public_keys" {
type = list(string)
default = []
}