Changeset View
Changeset View
Standalone View
Standalone View
proxmox/terraform/staging/cluster-archive-staging.tf
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | storages = [{ | ||||
}, { | }, { | ||||
storage = "proxmox" | storage = "proxmox" | ||||
size = "50G" | size = "50G" | ||||
} | } | ||||
] | ] | ||||
post_provision_steps = [ | post_provision_steps = [ | ||||
"systemctl restart docker", # workaround | "systemctl restart docker", # workaround | ||||
"${rancher2_cluster.archive-staging.cluster_registration_token[0].node_command} --worker --label node_type=generic" | "${rancher2_cluster.archive-staging.cluster_registration_token[0].node_command} --worker --label node_type=generic --label swh/rpc=true" | ||||
] | ] | ||||
} | } | ||||
output "rancher-node-staging-worker1_summary" { | output "rancher-node-staging-worker1_summary" { | ||||
value = module.rancher-node-staging-worker1.summary | value = module.rancher-node-staging-worker1.summary | ||||
} | } | ||||
# loader nodes must have the 2d disk on a local storage to not generate too much traffic on ceph | |||||
module "rancher-node-staging-worker2" { | module "rancher-node-staging-worker2" { | ||||
source = "../modules/node" | source = "../modules/node" | ||||
vmid = 148 | vmid = 148 | ||||
template = var.templates["stable-zfs"] | template = var.templates["stable-zfs"] | ||||
config = local.config | config = local.config | ||||
hostname = "rancher-node-staging-worker2" | hostname = "rancher-node-staging-worker2" | ||||
description = "elastic worker running in rancher cluster (loader, lister, ...)" | description = "elastic worker running in rancher cluster (loader, lister, ...)" | ||||
hypervisor = "uffizi" | hypervisor = "uffizi" | ||||
Show All 9 Lines | networks = [{ | ||||
gateway = local.config["gateway_ip"] | gateway = local.config["gateway_ip"] | ||||
bridge = local.config["vlan"] | bridge = local.config["vlan"] | ||||
}] | }] | ||||
storages = [{ | storages = [{ | ||||
storage = "proxmox" | storage = "proxmox" | ||||
size = "20G" | size = "20G" | ||||
}, { | }, { | ||||
storage = "proxmox" | storage = "uffizi-scratch" | ||||
size = "50G" | size = "50G" | ||||
} | } | ||||
] | ] | ||||
post_provision_steps = [ | post_provision_steps = [ | ||||
"systemctl restart docker", # workaround | "systemctl restart docker", # workaround | ||||
"${rancher2_cluster.archive-staging.cluster_registration_token[0].node_command} --worker --label node_type=worker --label swh/loader=true" | "${rancher2_cluster.archive-staging.cluster_registration_token[0].node_command} --worker --label node_type=worker --label swh/rpc=true --label swh/loader=true --label swh/lister=true" | ||||
] | ] | ||||
} | } | ||||
output "rancher-node-staging-worker2_summary" { | output "rancher-node-staging-worker2_summary" { | ||||
value = module.rancher-node-staging-worker2.summary | value = module.rancher-node-staging-worker2.summary | ||||
} | } | ||||
# loader nodes must have the 2d disk on a local storage to not generate too much traffic on ceph | |||||
module "rancher-node-staging-worker3" { | module "rancher-node-staging-worker3" { | ||||
source = "../modules/node" | source = "../modules/node" | ||||
vmid = 149 | vmid = 149 | ||||
template = var.templates["stable-zfs"] | template = var.templates["stable-zfs"] | ||||
config = local.config | config = local.config | ||||
hostname = "rancher-node-staging-worker3" | hostname = "rancher-node-staging-worker3" | ||||
description = "elastic worker running in rancher cluster (loader, lister, ...)" | description = "elastic worker running in rancher cluster (loader, lister, ...)" | ||||
hypervisor = "uffizi" | hypervisor = "uffizi" | ||||
Show All 9 Lines | networks = [{ | ||||
gateway = local.config["gateway_ip"] | gateway = local.config["gateway_ip"] | ||||
bridge = local.config["vlan"] | bridge = local.config["vlan"] | ||||
}] | }] | ||||
storages = [{ | storages = [{ | ||||
storage = "proxmox" | storage = "proxmox" | ||||
size = "20G" | size = "20G" | ||||
}, { | }, { | ||||
storage = "proxmox" | storage = "uffizi-scratch" | ||||
size = "50G" | size = "50G" | ||||
} | } | ||||
] | ] | ||||
post_provision_steps = [ | post_provision_steps = [ | ||||
"systemctl restart docker", # workaround | "systemctl restart docker", # workaround | ||||
"${rancher2_cluster.archive-staging.cluster_registration_token[0].node_command} --worker --label node_type=worker --label swh/loader=true" | "${rancher2_cluster.archive-staging.cluster_registration_token[0].node_command} --worker --label node_type=worker --label swh/rpc=true --label swh/loader=true --label swh/lister=true" | ||||
] | ] | ||||
} | } | ||||
output "rancher-node-staging-worker3_summary" { | output "rancher-node-staging-worker3_summary" { | ||||
value = module.rancher-node-staging-worker3.summary | value = module.rancher-node-staging-worker3.summary | ||||
} | } | ||||
resource "rancher2_app_v2" "archive-staging-rancher-monitoring" { | resource "rancher2_app_v2" "archive-staging-rancher-monitoring" { | ||||
Show All 39 Lines |