maidn-talos-proxmox/terraform/terraform.examples.tfvars

121 lines
3.2 KiB
HCL

# --- Proxmox Connection ---
proxmox_api_url = "https://192.168.0.9:8006/api2/json" #! Change me
proxmox_node = "proxmox-node-name" #! Default/fallback node
proxmox_api_token = "root@pam!talos-iac=xxx-xxx-xxx-xxx" #! Change me
proxmox_pool = ""
# --- Cluster Configuration ---
cluster_name = "proxmox-talos-cluster" #! Change me
cluster_domain = "example.com" #! Change me
talos_factory_schematic_id = "ddf38e55e30aa9b2bb0b765054ed63444dc00244ab8bb4ad4ad92486602285f8"
talos_version = "v1.11.1"
cni_name = "flannel"
talos_iso_file = "local:iso/talos-1.11.1.iso"
talos_image_update_mode = "manual"
talos_image_storage = "local"
# --- Storage Configuration ---
disk_storage = "local-lvm"
additional_disk_storage = "local-lvm"
# --- Network Configuration ---
dns_servers = ["192.168.43.1", "192.168.0.222", "1.1.1.1"]
control_plane_vip = "192.168.43.7"
node_interfaces = {
"proxmox-node-name" = "enp6s0"
# "pingu5" = "ens18"
}
create_vlan_interface = true
# --- TrueNAS Image Cache Proxy ---
image_cache_proxy = {
enabled = true
ip = "192.168.43.100"
port = 3128
}
# --- Cluster Node Definitions ---
nodes = [
{
name = "talos-master-01"
vmid = 1050
role = "controlplane"
cores = 2
memory = 4096
disk_size = "48G"
tags = ["talos", "controlplane"]
proxmox_node = "pingu4"
networks = [
{
mac_address = "BC:24:11:A4:B2:10"
cidr = "192.168.43.0/28"
ip = "192.168.43.2"
gateway = "192.168.43.1"
vlan_id = 43
},
{
mac_address = "BC:24:11:A4:B3:10"
cidr = "192.168.43.16/28"
vlan_id = 431
}
]
},
{
name = "talos-master-02"
vmid = 1051
role = "controlplane"
cores = 2
memory = 4096
disk_size = "48G"
tags = ["talos", "controlplane"]
proxmox_node = "pingu5"
networks = [
{
mac_address = "BC:24:11:A4:B2:11"
cidr = "192.168.43.0/28"
ip = "192.168.43.3"
gateway = "192.168.43.1"
vlan_id = 43
}
]
},
{
name = "talos-master-03"
vmid = 1052
role = "controlplane"
cores = 2
memory = 4096
disk_size = "48G"
tags = ["talos", "controlplane"]
proxmox_node = "pingu6"
networks = [
{
mac_address = "BC:24:11:A4:B2:12"
cidr = "192.168.43.0/28"
ip = "192.168.43.4"
gateway = "192.168.43.1"
vlan_id = 43
}
]
},
{
name = "talos-worker-01"
vmid = 1060
role = "worker"
cores = 4
memory = 8192
disk_size = "64G"
tags = ["talos", "worker", "compute"]
proxmox_node = "pingu4"
networks = [
{
mac_address = "BC:24:11:A4:B2:20"
cidr = "192.168.43.0/28"
ip = "192.168.43.5"
gateway = "192.168.43.1"
vlan_id = 43
}
]
}
]