Added virtual machines and talos config to create a three node cluster
This commit is contained in:
56
variables.tf
Normal file
56
variables.tf
Normal file
@@ -0,0 +1,56 @@
|
||||
variable "proxmox_api_url" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "proxmox_api_token_id" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "proxmox_api_token_secret" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "proxmox_target_node" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cluster_name" {
|
||||
description = "A name to provide for the Talos cluster"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cluster_endpoint" {
|
||||
description = "The endpoint for the Talos cluster"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "node_data" {
|
||||
description = "A map of node data"
|
||||
type = object({
|
||||
controlplanes = map(object({
|
||||
install_disk = string
|
||||
hostname = optional(string)
|
||||
}))
|
||||
workers = map(object({
|
||||
install_disk = string
|
||||
hostname = optional(string)
|
||||
}))
|
||||
})
|
||||
default = {
|
||||
controlplanes = {
|
||||
"192.168.1.150" = {
|
||||
install_disk = "/dev/vda"
|
||||
},
|
||||
}
|
||||
workers = {
|
||||
"192.168.1.151" = {
|
||||
install_disk = "/dev/vda"
|
||||
},
|
||||
"192.168.1.152" = {
|
||||
install_disk = "/dev/vda"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user