Changeset View
Changeset View
Standalone View
Standalone View
proxmox/terraform/production/cluster-archive-production.tf
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | post_provision_steps = [ | ||||
"${rancher2_cluster.archive-production.cluster_registration_token[0].node_command} --worker" | "${rancher2_cluster.archive-production.cluster_registration_token[0].node_command} --worker" | ||||
] | ] | ||||
} | } | ||||
output "rancher-node-production-worker04_summary" { | output "rancher-node-production-worker04_summary" { | ||||
value = module.rancher-node-production-worker04.summary | 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 = "uffizi" | |||||
sockets = "2" | |||||
cores = "5" | |||||
onboot = true | |||||
memory = "32768" | |||||
balloon = "16384" | |||||
networks = [{ | |||||
id = 0 | |||||
ip = "192.168.100.125" | |||||
gateway = local.config["gateway_ip"] | |||||
bridge = local.config["bridge"] | |||||
}] | |||||
storages = [{ | |||||
storage = "proxmox" | |||||
size = "20G" | |||||
}, { | |||||
storage = "uffizi-scratch" | |||||
size = "30G" | |||||
} | |||||
] | |||||
post_provision_steps = [ | |||||
"systemctl restart docker", # workaround | |||||
"${rancher2_cluster.archive-production.cluster_registration_token[0].node_command} --worker --label swh/loader=true --label swh/large-scratch-fs=true" | |||||
] | |||||
} | |||||
output "rancher-node-production-worker05_summary" { | |||||
value = module.rancher-node-production-worker05.summary | |||||
} | |||||
resource "rancher2_app_v2" "archive-production-rancher-monitoring" { | resource "rancher2_app_v2" "archive-production-rancher-monitoring" { | ||||
cluster_id = rancher2_cluster.archive-production.id | cluster_id = rancher2_cluster.archive-production.id | ||||
name = "rancher-monitoring" | name = "rancher-monitoring" | ||||
namespace = "cattle-monitoring-system" | namespace = "cattle-monitoring-system" | ||||
repo_name = "rancher-charts" | repo_name = "rancher-charts" | ||||
chart_name = "rancher-monitoring" | chart_name = "rancher-monitoring" | ||||
chart_version = "100.1.3+up19.0.3" | chart_version = "100.1.3+up19.0.3" | ||||
values = <<EOF | values = <<EOF | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |