infra-nimbus/mainnet.tf
Jakub Sokołowski 0256a21dd0
nimbus.mainnet: add two more hosts from Innova
The `linux-06` is a new host, while `linux-07` is re-purposed `linux-01`
from the prater fleet. This is done because the Innova company is out of
Xeon E5-2690 CPUs, and we want consistent performance across the fleet.

This way all seven hosts in `nimbus.mainnet` will use the E5-2690 CPU.

https://github.com/status-im/infra-nimbus/issues/132

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-05-09 15:07:22 +02:00

96 lines
2.6 KiB
HCL

/* Hetzner AX41-NVMe
* AMD Ryzen 5 3600 Hexa-Core
* 64 GB DDR4 RAM
* 2 x 512 GB NVMe SSD */
module "nimbus_nodes_mainnet_hetzner" {
source = "github.com/status-im/infra-tf-dummy-module"
name = "metal"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-metal"
region = "eu-hel1"
prefix = "he"
domain = var.domain
ips = [
"65.109.80.106", /* metal-01.he-eu-hel1.nimbus.mainnet */
]
}
module "nimbus_nodes_mainnet_innova" {
source = "github.com/status-im/infra-tf-dummy-module"
name = "linux"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-metal"
region = "eu-mda1"
prefix = "ih"
domain = var.domain
ips = [
"194.33.40.70", /* linux-01.ih-eu-mda1.nimbus.mainnet */
"194.33.40.72", /* linux-02.ih-eu-mda1.nimbus.mainnet */
"194.33.40.78", /* linux-03.ih-eu-mda1.nimbus.mainnet */
"194.33.40.99", /* linux-04.ih-eu-mda1.nimbus.mainnet */
"194.33.40.100", /* linux-05.ih-eu-mda1.nimbus.mainnet */
"194.33.40.101", /* linux-06.ih-eu-mda1.nimbus.mainnet */
"185.181.229.82", /* linux-07.ih-eu-mda1.nimbus.mainnet */
]
}
/* Community test REST API endpoints. */
resource "cloudflare_record" "unstable_mainnet_beacon_api" {
zone_id = local.zones["nimbus.team"]
name = "unstable.mainnet.beacon-api"
value = module.nimbus_nodes_mainnet_innova.public_ips[0]
type = "A"
proxied = false
}
resource "cloudflare_record" "testing_mainnet_beacon_api" {
zone_id = local.zones["nimbus.team"]
name = "testing.mainnet.beacon-api"
value = module.nimbus_nodes_mainnet_innova.public_ips[1]
type = "A"
proxied = false
}
/* ERA Files hosting */
resource "cloudflare_record" "era_mainnet" {
zone_id = local.zones["nimbus.team"]
name = "mainnet.era"
value = module.nimbus_nodes_mainnet_innova.public_ips[2]
type = "A"
proxied = true
}
/* WARNING: These are bootnodes and losing their IPs and private keys would be bad. */
module "nimbus_nodes_mainnet_stable_small" {
source = "github.com/status-im/infra-tf-amazon-web-services"
name = "stable-small"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-small"
domain = var.domain
/* Scaling */
type = "t3a.large"
root_vol_size = 20
data_vol_size = 300
data_vol_type = "gp2"
host_count = 2
/* Firewall */
open_udp_ports = local.nimbus_ports
open_tcp_ports = local.nimbus_ports
/* Plumbing */
vpc_id = module.nimbus_network.vpc.id
subnet_id = module.nimbus_network.subnets[0].id
secgroup_id = module.nimbus_network.secgroup.id
keypair_name = aws_key_pair.jakubgs.key_name
}