deploy first 3 node to pve
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
variable "install_name" {
|
||||
description = "Имя установки, используется в тегах и пути к inventory"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "proxmox" {
|
||||
type = object({
|
||||
node_name = string
|
||||
template_vm_id = number
|
||||
pool_id = string
|
||||
datastore_id = string
|
||||
bridge = string
|
||||
})
|
||||
}
|
||||
|
||||
variable "network" {
|
||||
type = object({
|
||||
prefix = number
|
||||
gateway = string
|
||||
dns_servers = list(string)
|
||||
})
|
||||
}
|
||||
|
||||
variable "vm_id_base" {
|
||||
description = "VMID = vm_id_base + последний октет IP"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "ssh" {
|
||||
type = object({
|
||||
user = string
|
||||
public_key_file = string
|
||||
})
|
||||
}
|
||||
|
||||
variable "vms" {
|
||||
description = "Топология установки: ВМ, их ресурсы и роли Ceph"
|
||||
type = map(object({
|
||||
ip = string
|
||||
cores = number
|
||||
memory = number
|
||||
os_disk_size = optional(number, 40)
|
||||
osd_disks = optional(number, 0)
|
||||
osd_disk_size = optional(number, 40)
|
||||
roles = list(string)
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user