First commit
This commit is contained in:
23
terraform/k3s/variables.tf
Normal file
23
terraform/k3s/variables.tf
Normal file
@@ -0,0 +1,23 @@
|
||||
variable "proxmox_endpoint" {}
|
||||
variable "proxmox_username" {}
|
||||
variable "proxmox_password" {}
|
||||
variable "proxmox_ssh_username" {}
|
||||
variable "proxmox_ssh_private_key" {}
|
||||
|
||||
|
||||
variable "k3s_vm_config" {
|
||||
type = map(object({
|
||||
name = string
|
||||
ip = string
|
||||
cidr = string
|
||||
ram = string
|
||||
role = string
|
||||
}))
|
||||
|
||||
default = {
|
||||
"vm1" = { name = "k3s-node-1", ip = "192.168.3.1", cidr = "16", ram = "4096", role = "master" }
|
||||
"vm2" = { name = "k3s-node-2", ip = "192.168.3.2", cidr = "16", ram = "4096", role = "worker" }
|
||||
"vm3" = { name = "k3s-node-3", ip = "192.168.3.3", cidr = "16", ram = "4096", role = "worker" }
|
||||
"vm4" = { name = "k3s-node-4", ip = "192.168.3.4", cidr = "16", ram = "4096", role = "worker" }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user