deploy first 3 node to pve
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
variable "name" {
|
||||
description = "Имя ВМ (оно же hostname)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "vm_id" {
|
||||
description = "VMID в Proxmox"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "node_name" {
|
||||
description = "Узел Proxmox, на котором создаётся ВМ"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "template_vm_id" {
|
||||
description = "VMID cloud-init шаблона, из которого клонируется ВМ"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "pool_id" {
|
||||
description = "Пул Proxmox, в который попадает ВМ"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "datastore_id" {
|
||||
description = "Хранилище для дисков ВМ и cloud-init диска"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cores" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "memory" {
|
||||
description = "RAM в MiB"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "os_disk_size" {
|
||||
description = "Размер системного диска, GB"
|
||||
type = number
|
||||
default = 40
|
||||
}
|
||||
|
||||
variable "osd_disks" {
|
||||
description = "Количество пустых дисков под OSD"
|
||||
type = number
|
||||
default = 0
|
||||
}
|
||||
|
||||
variable "osd_disk_size" {
|
||||
description = "Размер каждого диска под OSD, GB"
|
||||
type = number
|
||||
default = 40
|
||||
}
|
||||
|
||||
variable "bridge" {
|
||||
type = string
|
||||
default = "vmbr0"
|
||||
}
|
||||
|
||||
variable "ipv4_address" {
|
||||
description = "Статический адрес в CIDR, например 192.168.3.201/24"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ipv4_gateway" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "dns_servers" {
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "ssh_user" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ssh_public_keys" {
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "tags" {
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
Reference in New Issue
Block a user