init
This commit is contained in:
137
terraform/stacks/proxmox/lxc/variables.tf
Normal file
137
terraform/stacks/proxmox/lxc/variables.tf
Normal 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 = []
|
||||
}
|
||||
Reference in New Issue
Block a user