add networks many
This commit is contained in:
@@ -4,24 +4,26 @@ variable "ssh_key" {
|
||||
|
||||
variable "nodes" {
|
||||
type = map(object({
|
||||
# role = string
|
||||
index = number
|
||||
cpu = number
|
||||
memory = number
|
||||
disk = number
|
||||
datastore = string
|
||||
ip_offset = optional(number)
|
||||
ip = optional(string)
|
||||
vmid = optional(number)
|
||||
vlan_id = optional(number)
|
||||
data_disk = optional(number)
|
||||
cloudinit = optional(string)
|
||||
|
||||
network_devices = list(object({
|
||||
bridge = string
|
||||
vlan_id = optional(number)
|
||||
|
||||
ip = optional(string)
|
||||
cidr = optional(number)
|
||||
gateway = optional(string)
|
||||
}))
|
||||
}))
|
||||
}
|
||||
|
||||
variable "cluster_ip_start" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "worker_vmid_start" {
|
||||
type = number
|
||||
@@ -51,20 +53,6 @@ variable "disk_interface" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "network_base" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "network_cidr" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "cluster_gateway" {
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
|
||||
variable "data_datastore" {
|
||||
type = string
|
||||
description = "Datastore for data disk"
|
||||
|
||||
Reference in New Issue
Block a user