diff --git a/ansible/inventory/test b/ansible/inventory/test index cf0b3ee..ac2cb2b 100644 --- a/ansible/inventory/test +++ b/ansible/inventory/test @@ -13,7 +13,9 @@ libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont hostname=libp2p-small-02.aws-eu mainnet-01.aws-eu-central-1a.nimbus.geth hostname=mainnet-01.aws-eu-central-1a.nimbus.geth ansible_host=18.196.208.138 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=mainnet-01.aws-eu-central-1a.nimbus.geth.statusim.net master-large-01.aws-eu-central-1a.nimbus.pyrmont hostname=master-large-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.127.208.1 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-large-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net master-large-02.aws-eu-central-1a.nimbus.pyrmont hostname=master-large-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.198.94.42 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-large-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net +master-small-01.aws-eu-central-1a.nimbus.mainnet hostname=master-small-01.aws-eu-central-1a.nimbus.mainnet ansible_host=3.123.252.239 env=nimbus stage=mainnet data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-01.aws-eu-central-1a.nimbus.mainnet.statusim.net master-small-01.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.193.255.204 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net +master-small-02.aws-eu-central-1a.nimbus.mainnet hostname=master-small-02.aws-eu-central-1a.nimbus.mainnet ansible_host=52.59.124.142 env=nimbus stage=mainnet data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-02.aws-eu-central-1a.nimbus.mainnet.statusim.net master-small-02.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.158.57.49 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net master-small-03.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-03.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.192.39.165 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-03.aws-eu-central-1a.nimbus.pyrmont.statusim.net master-small-04.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-04.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.122.169.9 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-04.aws-eu-central-1a.nimbus.pyrmont.statusim.net @@ -33,7 +35,9 @@ libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont mainnet-01.aws-eu-central-1a.nimbus.geth master-large-01.aws-eu-central-1a.nimbus.pyrmont master-large-02.aws-eu-central-1a.nimbus.pyrmont +master-small-01.aws-eu-central-1a.nimbus.mainnet master-small-01.aws-eu-central-1a.nimbus.pyrmont +master-small-02.aws-eu-central-1a.nimbus.mainnet master-small-02.aws-eu-central-1a.nimbus.pyrmont master-small-03.aws-eu-central-1a.nimbus.pyrmont master-small-04.aws-eu-central-1a.nimbus.pyrmont @@ -46,6 +50,10 @@ goerli-01.aws-eu-central-1a.nimbus.geth [nimbus-geth-mainnet] mainnet-01.aws-eu-central-1a.nimbus.geth +[nimbus-mainnet-small] +master-small-01.aws-eu-central-1a.nimbus.mainnet +master-small-02.aws-eu-central-1a.nimbus.mainnet + [nimbus-pyrmont-devel] devel-large-01.aws-eu-central-1a.nimbus.pyrmont devel-large-02.aws-eu-central-1a.nimbus.pyrmont @@ -74,6 +82,10 @@ toledo-02.aws-eu-central-1a.nimbus.test goerli-01.aws-eu-central-1a.nimbus.geth mainnet-01.aws-eu-central-1a.nimbus.geth +[nimbus.mainnet] +master-small-01.aws-eu-central-1a.nimbus.mainnet +master-small-02.aws-eu-central-1a.nimbus.mainnet + [nimbus.pyrmont] devel-large-01.aws-eu-central-1a.nimbus.pyrmont devel-large-02.aws-eu-central-1a.nimbus.pyrmont diff --git a/mainnet.tf b/mainnet.tf new file mode 100644 index 0000000..a0b10f5 --- /dev/null +++ b/mainnet.tf @@ -0,0 +1,26 @@ +module "nimbus_nodes_mainnet_master_small" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "master-small" + env = "nimbus" + stage = "mainnet" + group = "nimbus-mainnet-small" + domain = var.domain + + /* Scaling */ + instance_type = "t3a.medium" + root_vol_size = 20 + data_vol_size = 150 + 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 +}