nodes.tf: rename to node.tf, and module to node
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
651188b8c5
commit
19b1507227
|
@ -1,4 +1,4 @@
|
||||||
module "hosts" {
|
module "node" {
|
||||||
source = "github.com/status-im/infra-tf-multi-provider"
|
source = "github.com/status-im/infra-tf-multi-provider"
|
||||||
|
|
||||||
/* node type */
|
/* node type */
|
||||||
|
@ -8,20 +8,20 @@ module "hosts" {
|
||||||
domain = var.domain
|
domain = var.domain
|
||||||
|
|
||||||
/* scaling */
|
/* scaling */
|
||||||
host_count = local.ws["hosts_count"]
|
host_count = local.ws["node_count"]
|
||||||
|
|
||||||
/* instance sizes */
|
/* instance sizes */
|
||||||
do_type = local.ws["do_type"] /* DigitalOcean */
|
do_type = local.ws["node_do_type"] /* DigitalOcean */
|
||||||
ac_type = local.ws["ac_type"] /* Alibaba Cloud */
|
ac_type = local.ws["node_ac_type"] /* Alibaba Cloud */
|
||||||
gc_type = local.ws["gc_type"] /* Google Cloud */
|
gc_type = local.ws["node_gc_type"] /* Google Cloud */
|
||||||
|
|
||||||
/* data volumes */
|
/* data volumes */
|
||||||
ac_data_vol_size = local.ws["data_volume_size"]
|
ac_data_vol_size = local.ws["node_data_vol_size"]
|
||||||
do_data_vol_size = local.ws["data_volume_size"]
|
do_data_vol_size = local.ws["node_data_vol_size"]
|
||||||
gc_data_vol_size = local.ws["data_volume_size"]
|
gc_data_vol_size = local.ws["node_data_vol_size"]
|
||||||
/* fix for volume size */
|
|
||||||
ac_data_vol_type = local.ws["ac_data_volume_type"]
|
|
||||||
|
|
||||||
|
/* fix for volume size */
|
||||||
|
ac_data_vol_type = local.ws["node_ac_data_vol_type"]
|
||||||
|
|
||||||
/* firewall */
|
/* firewall */
|
||||||
open_tcp_ports = [
|
open_tcp_ports = [
|
|
@ -13,20 +13,20 @@ locals {
|
||||||
env = "status"
|
env = "status"
|
||||||
stage = terraform.workspace
|
stage = terraform.workspace
|
||||||
|
|
||||||
/* scaling */
|
/* Waku nodes */
|
||||||
hosts_count = 1
|
node_count = 1
|
||||||
data_volume_size = 40
|
node_do_type = "s-1vcpu-2gb" /* DigitalOcean */
|
||||||
ac_data_volume_type = "cloud_ssd"
|
node_ac_type = "ecs.t5-lc1m2.small" /* Alibaba Cloud */
|
||||||
do_type = "s-1vcpu-2gb" /* DigitalOcean */
|
node_gc_type = "g1-small" /* Google Cloud */
|
||||||
ac_type = "ecs.t5-lc1m2.small" /* Alibaba Cloud */
|
node_ac_data_vol_type = "cloud_ssd"
|
||||||
gc_type = "g1-small" /* Google Cloud */
|
node_data_vol_size = 40
|
||||||
}
|
}
|
||||||
|
|
||||||
# Inherits defaults.
|
# Inherits defaults.
|
||||||
test = { hosts_count = 1 }
|
test = {}
|
||||||
prod = {
|
prod = {
|
||||||
hosts_count = 2
|
node_count = 2
|
||||||
data_volume_size = 350
|
node_data_vol_size = 350
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue