Made installation more configurable and removed clutter
This commit is contained in:
@@ -20,11 +20,34 @@ variable "proxmox_storage_device" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "talos_version" {
|
||||
type = string
|
||||
default = "1.11.1"
|
||||
}
|
||||
|
||||
variable "talos_linux_iso_image_url" {
|
||||
description = "URL of the Talos ISO image for initially booting the VM"
|
||||
type = string
|
||||
default = "https://factory.talos.dev/image/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515/v1.11.1/nocloud-amd64.iso"
|
||||
}
|
||||
|
||||
variable "talos_linux_iso_image_filename" {
|
||||
description = "Filename of the Talos ISO image for initially booting the VM"
|
||||
type = string
|
||||
default = "talos-linux-v1.11.1-qemu-guest-agent-amd64.iso"
|
||||
}
|
||||
|
||||
variable "cluster_name" {
|
||||
description = "A name to provide for the Talos cluster"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cluster_vip_shared_ip" {
|
||||
description = "Shared virtual IP address for control plane nodes"
|
||||
type = string
|
||||
default = "192.168.1.100"
|
||||
}
|
||||
|
||||
variable "node_data" {
|
||||
description = "A map of node data"
|
||||
type = object({
|
||||
@@ -41,20 +64,16 @@ variable "node_data" {
|
||||
})
|
||||
default = {
|
||||
controlplanes = {
|
||||
"192.168.1.150" = {
|
||||
"192.168.1.101" = {
|
||||
install_disk = "/dev/vda"
|
||||
install_image = "factory.talos.dev/nocloud-installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.11.1"
|
||||
},
|
||||
}
|
||||
workers = {
|
||||
"192.168.1.151" = {
|
||||
"192.168.1.102" = {
|
||||
install_disk = "/dev/vda"
|
||||
install_image = "factory.talos.dev/nocloud-installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.11.1"
|
||||
},
|
||||
"192.168.1.152" = {
|
||||
install_disk = "/dev/vda"
|
||||
install_image = "factory.talos.dev/nocloud-installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.11.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,12 +93,6 @@ variable "domain_name_server" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "vip_shared_ip" {
|
||||
description = "Shared virtual IP address for control plane nodes"
|
||||
type = string
|
||||
default = "192.168.20.10"
|
||||
}
|
||||
|
||||
variable "vlan_tag" {
|
||||
description = "Vlan tag for all nodes, default does not configure a Vlan"
|
||||
type = number
|
||||
|
||||
Reference in New Issue
Block a user