diff --git a/proxmox/terraform/production/cluster-archive-production.tf b/proxmox/terraform/production/cluster-archive-production.tf --- a/proxmox/terraform/production/cluster-archive-production.tf +++ b/proxmox/terraform/production/cluster-archive-production.tf @@ -222,6 +222,45 @@ value = module.rancher-node-production-worker04.summary } +module "rancher-node-production-worker05" { + source = "../modules/node" + template = var.templates["stable-zfs"] + config = local.config + hostname = "rancher-node-production-worker05" + description = "Generic worker node" + hypervisor = "hypervisor3" + sockets = "2" + cores = "5" + onboot = true + memory = "65536" + balloon = "32768" + + networks = [{ + id = 0 + ip = "192.168.100.125" + gateway = local.config["gateway_ip"] + bridge = local.config["bridge"] + }] + + storages = [{ + storage = "proxmox" + size = "20G" + }, { + storage = "scratch" + size = "20G" + } + ] + + post_provision_steps = [ + "systemctl restart docker", # workaround + "${rancher2_cluster.archive-production.cluster_registration_token[0].node_command} --worker --label swh/loader=true" + ] +} + +output "rancher-node-production-worker05_summary" { + value = module.rancher-node-production-worker05.summary +} + resource "rancher2_app_v2" "archive-production-rancher-monitoring" { cluster_id = rancher2_cluster.archive-production.id name = "rancher-monitoring"